Class CellEditorFactory
- java.lang.Object
-
- org.eclipse.emfforms.internal.view.control.multiattribute.celleditor.CellEditorFactory
-
public final class CellEditorFactory extends java.lang.Object
Factory to created newcell editors
for theMultiAttributeSWTRenderer
.- Author:
- Johannes Faltermeier
-
-
Field Summary
Fields Modifier and Type Field Description static CellEditorFactory
INSTANCE
The singleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jface.viewers.CellEditor
createCellEditor(org.eclipse.emf.ecore.EAttribute multiAttribute, org.eclipse.emf.ecore.EObject eObject, org.eclipse.swt.widgets.Table table, ViewModelContext viewModelContext)
Creates a newCellEditor
for the given arguments.
-
-
-
Field Detail
-
INSTANCE
public static final CellEditorFactory INSTANCE
The singleton instance.
-
-
Method Detail
-
createCellEditor
public org.eclipse.jface.viewers.CellEditor createCellEditor(org.eclipse.emf.ecore.EAttribute multiAttribute, org.eclipse.emf.ecore.EObject eObject, org.eclipse.swt.widgets.Table table, ViewModelContext viewModelContext)
Creates a newCellEditor
for the given arguments. If no fittingCellEditor
is found at the extension point or if there was an exception during the creation aTextCellEditor
will be returned as a default.- Parameters:
multiAttribute
- the feature which is displayed by theMultiAttributeSWTRenderer
eObject
- theEObject
table
- theTable
viewModelContext
- theViewModelContext
- Returns:
- a
ECPCellEditor
or aTextCellEditor
as a fallback
-
-