|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.edit.spi.util.ECPStaticApplicableTester
public final class ECPStaticApplicableTester
The implementation of the ECPApplicableTester
for a static test, like defined in the staticTest element.
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.ecp.edit.spi.util.ECPApplicableTester |
---|
NOT_APPLICABLE |
Constructor Summary | |
---|---|
ECPStaticApplicableTester(boolean singleValue,
int priority,
Class<?> supportedClassType,
Class<? extends org.eclipse.emf.ecore.EObject> supportedEObject,
String supportedFeature)
The constructor of the static tester. |
Method Summary | |
---|---|
int |
getPriority()
The static priority of the corresponding control. |
Class<?> |
getSupportedClassType()
The class of the type the corresponding control supports. |
Class<? extends org.eclipse.emf.ecore.EObject> |
getSupportedEObject()
The eobejct which is supported by the corresponding control. |
String |
getSupportedFeature()
The name of the feature the corresponding control supports. |
int |
isApplicable(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature feature)
Returns the priority of the corresponding control for the combination of the EObject and the
EStructuralFeature . |
int |
isApplicable(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor,
org.eclipse.emf.ecore.EObject eObject)
Deprecated. |
int |
isApplicable(VDomainModelReference domainModelReference)
Returns the priority of the corresponding control for the provided VDomainModelReference . |
boolean |
isSingleValue()
Whether the corresponding control is allowed only for single values. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ECPStaticApplicableTester(boolean singleValue, int priority, Class<?> supportedClassType, Class<? extends org.eclipse.emf.ecore.EObject> supportedEObject, String supportedFeature)
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 allowsMethod Detail |
---|
@Deprecated public int isApplicable(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor, org.eclipse.emf.ecore.EObject eObject)
EObject
and the
IItemPropertyDescriptor
.
isApplicable
in interface ECPApplicableTester
itemPropertyDescriptor
- the IItemPropertyDescriptor
to testeObject
- the EObject
to test
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.public int isApplicable(VDomainModelReference domainModelReference)
VDomainModelReference
.
isApplicable
in interface ECPApplicableTester
domainModelReference
- the VDomainModelReference
to test
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.ECPApplicableTester.isApplicable(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference)
public int isApplicable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature feature)
EObject
and the
EStructuralFeature
.
isApplicable
in interface ECPApplicableTester
eObject
- the EObject
to testfeature
- the EStructuralFeature
to test
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.ECPApplicableTester.isApplicable(org.eclipse.emf.ecore.EObject,
org.eclipse.emf.ecore.EStructuralFeature)
public boolean isSingleValue()
public int getPriority()
public Class<? extends org.eclipse.emf.ecore.EObject> getSupportedEObject()
public String getSupportedFeature()
public Class<?> getSupportedClassType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |