KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > viewers > model > provisional > IElementEditor


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.viewers.model.provisional;
12
13 import org.eclipse.jface.viewers.CellEditor;
14 import org.eclipse.jface.viewers.ICellModifier;
15 import org.eclipse.swt.widgets.Composite;
16
17 /**
18  * Creates context specific cell modifiers and editors for elements.
19  *
20  * @since 3.3
21  */

22 public interface IElementEditor {
23     
24     /**
25      * Returns a cell editor to use for the specified column and object or <code>null</code>
26      * if none.
27      *
28      * @param context presentation context
29      * @param id column id
30      * @param element object to be edited
31      * @param parent parent control to create the cell editor in
32      * @return cell editor or <code>null</code>
33      */

34     public CellEditor getCellEditor(IPresentationContext context, String JavaDoc columnId, Object JavaDoc element, Composite parent);
35     
36     /**
37      * Returns a cell modifier for the specified element in the given context
38      * or <code>null</code> if none.
39      *
40      * @return cell modifier or <code>null</code>
41      */

42     public ICellModifier getCellModifier(IPresentationContext context, Object JavaDoc element);
43
44 }
45
Popular Tags