Interface MultiAttributeSWTRendererCellEditorTester
-
- All Known Implementing Classes:
DateCellEditorTester
,EnumCellEditorTester
,NumberCellEditorTester
,StringCellEditorTester
,XmlDateCellEditorTester
public interface MultiAttributeSWTRendererCellEditorTester
This interface defines aisApplicable(EObject, EAttribute, ViewModelContext)
method which is used to determine the priority of a celleditor. The celleditor with the highest priority for a combination of anEObject
and a feature will be used.- Author:
- Johannes Faltermeier
-
-
Field Summary
Fields Modifier and Type Field Description static double
NOT_APPLICABLE
Return this whenever the renderer should not be used for the testedViewModelContext
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
isApplicable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute multiAttribute, ViewModelContext viewModelContext)
Returns the priority of the corresponding celleditor for the combination of theEObject
and the multi-valuedEAttribute
.
-
-
-
Field Detail
-
NOT_APPLICABLE
static final double NOT_APPLICABLE
Return this whenever the renderer should not be used for the testedViewModelContext
.- See Also:
- Constant Field Values
-
-
Method Detail
-
isApplicable
double isApplicable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute multiAttribute, ViewModelContext viewModelContext)
Returns the priority of the corresponding celleditor for the combination of theEObject
and the multi-valuedEAttribute
.- Parameters:
multiAttribute
- theEAttribute
to testeObject
- theEObject
to testviewModelContext
- theViewModelContext
to check- Returns:
NOT_APPLICABLE
if the corresponding celleditor should not be used, a positive integer value otherwise. The celleditor with the highest priority will be taken.
-
-