Class SimpleControlRendererTester

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean checkFeatureETypeAnnotations​(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EAnnotation> eAnnotations)
      Allows to check the EAnnotations of the feature's type.
      protected abstract int getPriority()
      The static priority of the corresponding control.
      protected abstract java.lang.Class<?> getSupportedClassType()
      The class of the type the corresponding control supports.
      protected java.lang.Class<? extends org.eclipse.emf.ecore.EObject> getSupportedEObject()
      The eobejct which is supported by the corresponding control.
      protected org.eclipse.emf.ecore.EStructuralFeature getSupportedFeature()
      The feature the corresponding control supports.
      int isApplicable​(VElement vElement, ViewModelContext viewModelContext)
      Check whether the provided VElement and ViewModelContext are fitting for the provided renderer.
      protected abstract boolean isSingleValue()
      Whether the corresponding control is allowed only for single values.
      • Methods inherited from class java.lang.Object

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

      • SimpleControlRendererTester

        public SimpleControlRendererTester()
    • Method Detail

      • checkFeatureETypeAnnotations

        protected boolean checkFeatureETypeAnnotations​(org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EAnnotation> eAnnotations)
        Allows to check the EAnnotations of the feature's type.
        Parameters:
        eAnnotations - the annotations
        Returns:
        true if applicable, false otherwise
        Since:
        1.5
      • isSingleValue

        protected abstract boolean isSingleValue()
        Whether the corresponding control is allowed only for single values.
        Returns:
        true if only a single value is allows
      • getPriority

        protected abstract int getPriority()
        The static priority of the corresponding control.
        Returns:
        the priority
      • getSupportedEObject

        protected java.lang.Class<? extends org.eclipse.emf.ecore.EObject> getSupportedEObject()
        The eobejct which is supported by the corresponding control. Default is the EObject.
        Returns:
        the class of the supported eobejct
      • getSupportedFeature

        protected org.eclipse.emf.ecore.EStructuralFeature getSupportedFeature()
        The feature the corresponding control supports. Default is null to support all features.
        Returns:
        the supported feature
      • getSupportedClassType

        protected abstract java.lang.Class<?> getSupportedClassType()
        The class of the type the corresponding control supports.
        Returns:
        the class of the supported type