Class DateCellEditorTester
- java.lang.Object
-
- org.eclipse.emfforms.internal.view.control.multiattribute.celleditor.DateCellEditorTester
-
- All Implemented Interfaces:
MultiAttributeSWTRendererCellEditorTester
public class DateCellEditorTester extends java.lang.Object implements MultiAttributeSWTRendererCellEditorTester
Tester
for DateCellEditor.- Author:
- Johannes Faltermeier
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emfforms.spi.view.control.multiattribute.celleditor.MultiAttributeSWTRendererCellEditorTester
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description DateCellEditorTester()
-
Method Summary
All Methods Instance Methods Concrete 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
.
-
-
-
Method Detail
-
isApplicable
public double isApplicable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EAttribute multiAttribute, ViewModelContext viewModelContext)
Description copied from interface:MultiAttributeSWTRendererCellEditorTester
Returns the priority of the corresponding celleditor for the combination of theEObject
and the multi-valuedEAttribute
.- Specified by:
isApplicable
in interfaceMultiAttributeSWTRendererCellEditorTester
- Parameters:
eObject
- theEObject
to testmultiAttribute
- theEAttribute
to testviewModelContext
- theViewModelContext
to check- Returns:
MultiAttributeSWTRendererCellEditorTester.NOT_APPLICABLE
if the corresponding celleditor should not be used, a positive integer value otherwise. The celleditor with the highest priority will be taken.
-
-