KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2006 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.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 cell modifiers and editors. Used in conjunction with a column presentation.
19  *
20  * @since 3.2
21  */

22 public interface IColumnEditor {
23     
24     /**
25      * Initializes this column editor to be used in the
26      * given context.
27      *
28      * @param context
29      */

30     public void init(IPresentationContext context);
31     
32     /**
33      * Disposes this column presentation
34      */

35     public void dispose();
36     
37     /**
38      * Returns a cell editor to use for the specified column and object or <code>null</code>
39      * if none.
40      *
41      * @param id column id
42      * @param element object to be edited
43      * @param parent parent control to create the cell editor in
44      * @return cell editor or <code>null</code>
45      */

46     public CellEditor getCellEditor(String JavaDoc id, Object JavaDoc element, Composite parent);
47     
48     /**
49      * Returns the cell modifier for this set of columns.
50      *
51      * @return cell modifier
52      */

53     public ICellModifier getCellModifier();
54
55     /**
56      * Returns an identifier for this column editor.
57      * The identifier should be unique per kind of column editor
58      * (for example, the column editor for Java variables
59      * in the variables view).
60      *
61      * @return identifier
62      */

63     public String JavaDoc getId();
64 }
65
Popular Tags