Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: df2183113614c1c16f9196d00f541a6bb59e6dc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
 * Copyright (c) 2006, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.debug.internal.ui.viewers.model.provisional;

import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ICellModifier;
import org.eclipse.swt.widgets.Composite;

/**
 * Creates context specific cell modifiers and editors for elements.
 *
 * @since 3.3
 */
public interface IElementEditor {

	/**
	 * Returns a cell editor to use for the specified column and object or <code>null</code>
	 * if none.
	 *
	 * @param context presentation context
	 * @param columnId column id
	 * @param element object to be edited
	 * @param parent parent control to create the cell editor in
	 * @return cell editor or <code>null</code>
	 */
	public CellEditor getCellEditor(IPresentationContext context, String columnId, Object element, Composite parent);

	/**
	 * Returns a cell modifier for the specified element in the given context
	 * or <code>null</code> if none.
	 * @param context Presentation context
	 * @param element Model element.
	 *
	 * @return cell modifier or <code>null</code>
	 */
	public ICellModifier getCellModifier(IPresentationContext context, Object element);

}

Back to the top