Class ECPStaticApplicableTester
- java.lang.Object
-
- org.eclipse.emf.ecp.edit.spi.util.ECPStaticApplicableTester
-
- All Implemented Interfaces:
ECPApplicableTester
@Deprecated public final class ECPStaticApplicableTester extends java.lang.Object implements ECPApplicableTester
Deprecated.The implementation of theECPApplicableTester
for a static test, like defined in the staticTest element.- Author:
- Eugen Neufeld
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.ecp.edit.spi.util.ECPApplicableTester
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description ECPStaticApplicableTester(boolean singleValue, int priority, java.lang.Class<?> supportedClassType, java.lang.Class<? extends org.eclipse.emf.ecore.EObject> supportedEObject, java.lang.String supportedFeature)
Deprecated.The constructor of the static tester.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getPriority()
Deprecated.The static priority of the corresponding control.java.lang.Class<?>
getSupportedClassType()
Deprecated.The class of the type the corresponding control supports.java.lang.Class<? extends org.eclipse.emf.ecore.EObject>
getSupportedEObject()
Deprecated.The eobejct which is supported by the corresponding control.java.lang.String
getSupportedFeature()
Deprecated.The name of the feature the corresponding control supports.int
isApplicable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature)
Deprecated.int
isApplicable(VDomainModelReference domainModelReference)
Deprecated.int
isApplicable(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor, org.eclipse.emf.ecore.EObject eObject)
Deprecated.boolean
isSingleValue()
Deprecated.Whether the corresponding control is allowed only for single values.
-
-
-
Constructor Detail
-
ECPStaticApplicableTester
public ECPStaticApplicableTester(boolean singleValue, int priority, java.lang.Class<?> supportedClassType, java.lang.Class<? extends org.eclipse.emf.ecore.EObject> supportedEObject, java.lang.String supportedFeature)
Deprecated.The constructor of the static tester.- Parameters:
singleValue
- whether the corresponding control supports only single valued featurespriority
- the static prioritysupportedClassType
- the class of the supported typesupportedEObject
- the eobject this tester allowssupportedFeature
- the feature this tester allows
-
-
Method Detail
-
isApplicable
@Deprecated public int isApplicable(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor, org.eclipse.emf.ecore.EObject eObject)
Deprecated.Returns the priority of the corresponding control for the combination of theEObject
and theIItemPropertyDescriptor
.- Specified by:
isApplicable
in interfaceECPApplicableTester
- Parameters:
itemPropertyDescriptor
- theIItemPropertyDescriptor
to testeObject
- theEObject
to test- Returns:
ECPApplicableTester.NOT_APPLICABLE
if the corresponding control should not be used, a positivie integer value otherwise. The control with the highest priority will be taken.
-
isApplicable
@Deprecated public int isApplicable(VDomainModelReference domainModelReference)
Deprecated.Returns the priority of the corresponding control for the providedVDomainModelReference
.- Specified by:
isApplicable
in interfaceECPApplicableTester
- Parameters:
domainModelReference
- theVDomainModelReference
to test- Returns:
ECPApplicableTester.NOT_APPLICABLE
if the corresponding control should not be used, a positivie integer value otherwise. The control with the highest priority will be taken.- Since:
- 1.2
- See Also:
ECPApplicableTester.isApplicable(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference)
-
isApplicable
@Deprecated public int isApplicable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature)
Deprecated.Returns the priority of the corresponding control for the combination of theEObject
and theEStructuralFeature
.- Specified by:
isApplicable
in interfaceECPApplicableTester
- Parameters:
eObject
- theEObject
to testfeature
- theEStructuralFeature
to test- Returns:
ECPApplicableTester.NOT_APPLICABLE
if the corresponding control should not be used, a positivie integer value otherwise. The control with the highest priority will be taken.- Since:
- 1.2
- See Also:
ECPApplicableTester.isApplicable(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature)
-
isSingleValue
public boolean isSingleValue()
Deprecated.Whether the corresponding control is allowed only for single values.- Returns:
- true if only a single value is allows
-
getPriority
public int getPriority()
Deprecated.The static priority of the corresponding control.- Returns:
- the priority
-
getSupportedEObject
public java.lang.Class<? extends org.eclipse.emf.ecore.EObject> getSupportedEObject()
Deprecated.The eobejct which is supported by the corresponding control.- Returns:
- the class of the supported eobejct
-
getSupportedFeature
public java.lang.String getSupportedFeature()
Deprecated.The name of the feature the corresponding control supports.- Returns:
- the name of the supported feature
-
getSupportedClassType
public java.lang.Class<?> getSupportedClassType()
Deprecated.The class of the type the corresponding control supports.- Returns:
- the class of the supported type
-
-