Class ReferenceMultiControlTester
- java.lang.Object
-
- org.eclipse.emf.ecp.edit.internal.swt.reference.ReferenceMultiControlTester
-
- All Implemented Interfaces:
ECPApplicableTester
@Deprecated public class ReferenceMultiControlTester extends java.lang.Object implements ECPApplicableTester
Deprecated.This is a dynamic tester for an reference multi control. It tests whether there is a control with a static tester which would fit.- Author:
- Eugen Neufeld
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.ecp.edit.spi.util.ECPApplicableTester
NOT_APPLICABLE
-
-
Constructor Summary
Constructors Constructor Description ReferenceMultiControlTester()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static intgetTesterPriority(ECPStaticApplicableTester tester, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject eObject)Deprecated.Calculates the priority of the attribute tester.intisApplicable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)Deprecated.Returns the priority of the corresponding control for the combination of theEObjectand theEStructuralFeature.intisApplicable(VDomainModelReference domainModelReference)Deprecated.intisApplicable(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor, org.eclipse.emf.ecore.EObject eObject)Deprecated.
-
-
-
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 theEObjectand theIItemPropertyDescriptor.- Specified by:
isApplicablein interfaceECPApplicableTester- Parameters:
itemPropertyDescriptor- theIItemPropertyDescriptorto testeObject- theEObjectto test- Returns:
ECPApplicableTester.NOT_APPLICABLEif the corresponding control should not be used, a positivie integer value otherwise. The control with the highest priority will be taken.
-
isApplicable
public int isApplicable(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)Deprecated.Returns the priority of the corresponding control for the combination of theEObjectand theEStructuralFeature.- Specified by:
isApplicablein interfaceECPApplicableTester- Parameters:
eObject- theEObjectto testeStructuralFeature- theEStructuralFeatureto test- Returns:
ECPApplicableTester.NOT_APPLICABLEif the corresponding control should not be used, a positivie integer value otherwise. The control with the highest priority will be taken.- See Also:
ECPApplicableTester.isApplicable(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature)
-
getTesterPriority
public static int getTesterPriority(ECPStaticApplicableTester tester, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject eObject)
Deprecated.Calculates the priority of the attribute tester.- Parameters:
tester- the tester to get the priority forfeature- theEStructuralFeatureeObject- theEObject- Returns:
- the priority
-
isApplicable
@Deprecated public int isApplicable(VDomainModelReference domainModelReference)
Deprecated.Returns the priority of the corresponding control for the providedVDomainModelReference.- Specified by:
isApplicablein interfaceECPApplicableTester- Parameters:
domainModelReference- theVDomainModelReferenceto test- Returns:
ECPApplicableTester.NOT_APPLICABLEif the corresponding control should not be used, a positivie integer value otherwise. The control with the highest priority will be taken.- See Also:
ECPApplicableTester.isApplicable(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference)
-
-