org.eclipse.emf.common.ui.celleditor
Class ExtendedComboBoxCellEditor
java.lang.Object
org.eclipse.jface.viewers.CellEditor
org.eclipse.jface.viewers.ComboBoxCellEditor
org.eclipse.emf.common.ui.celleditor.ExtendedComboBoxCellEditor
- public class ExtendedComboBoxCellEditor
- extends ComboBoxCellEditor
This uses a list of objects and a label provider to build a combo box based on model objects rather than on strings.
If sort is true, the list will be modified to match the order of the sorted labels.
Field Summary |
protected List |
list
This keeps track of the list of model objects. |
Constructor Summary |
ExtendedComboBoxCellEditor(Composite composite,
List list,
ILabelProvider labelProvider)
|
ExtendedComboBoxCellEditor(Composite composite,
List list,
ILabelProvider labelProvider,
boolean sorted)
|
ExtendedComboBoxCellEditor(Composite composite,
List list,
ILabelProvider labelProvider,
boolean sorted,
int style)
|
ExtendedComboBoxCellEditor(Composite composite,
List list,
ILabelProvider labelProvider,
int style)
|
Methods inherited from class org.eclipse.jface.viewers.CellEditor |
activate, addListener, addPropertyChangeListener, create, deactivate, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, getControl, getErrorMessage, getStyle, getValidator, getValue, isActivated, isCopyEnabled, isCorrect, isCutEnabled, isDeleteEnabled, isDirty, isFindEnabled, isPasteEnabled, isRedoEnabled, isSelectAllEnabled, isUndoEnabled, isValueValid, markDirty, performCopy, performCut, performDelete, performFind, performPaste, performRedo, performSelectAll, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
list
protected List list
- This keeps track of the list of model objects.
ExtendedComboBoxCellEditor
public ExtendedComboBoxCellEditor(Composite composite,
List list,
ILabelProvider labelProvider)
ExtendedComboBoxCellEditor
public ExtendedComboBoxCellEditor(Composite composite,
List list,
ILabelProvider labelProvider,
boolean sorted)
ExtendedComboBoxCellEditor
public ExtendedComboBoxCellEditor(Composite composite,
List list,
ILabelProvider labelProvider,
int style)
ExtendedComboBoxCellEditor
public ExtendedComboBoxCellEditor(Composite composite,
List list,
ILabelProvider labelProvider,
boolean sorted,
int style)
createItems
public static String[] createItems(List list,
ILabelProvider labelProvider,
boolean sorted)
doGetValue
public Object doGetValue()
doSetValue
public void doSetValue(Object value)