Class SingleReferenceCellEditorTester

  • All Implemented Interfaces:
    ECPCellEditorTester

    public class SingleReferenceCellEditorTester
    extends java.lang.Object
    implements ECPCellEditorTester
    Single reference cell editor tester.
    Since:
    1.22
    Author:
    Mat Hansen , Eugen Neufeld
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int isApplicable​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ViewModelContext viewModelContext)
      Returns the priority of the corresponding celleditor for the combination of the EObject and the EStructuralFeature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleReferenceCellEditorTester

        public SingleReferenceCellEditorTester()
    • Method Detail

      • isApplicable

        public int isApplicable​(org.eclipse.emf.ecore.EObject eObject,
                                org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                                ViewModelContext viewModelContext)
        Description copied from interface: ECPCellEditorTester
        Returns the priority of the corresponding celleditor for the combination of the EObject and the EStructuralFeature.
        Specified by:
        isApplicable in interface ECPCellEditorTester
        Parameters:
        eObject - the EObject to test
        eStructuralFeature - the EStructuralFeature to test
        viewModelContext - the ViewModelContext to check
        Returns:
        ECPCellEditorTester.NOT_APPLICABLE if the corresponding celleditor should not be used, a positive integer value otherwise. The celleditor with the highest priority will be taken.