org.eclipse.emf.ecp.view.internal.editor.controls
Class TableDomainModelReferenceTester
java.lang.Object
org.eclipse.emf.ecp.view.internal.editor.controls.TableDomainModelReferenceTester
- All Implemented Interfaces:
- ECPApplicableTester
public class TableDomainModelReferenceTester
- extends Object
- implements ECPApplicableTester
- Author:
- Eugen
Method Summary |
int |
isApplicable(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
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)
Returns the priority of the corresponding control for the combination of the EObject and the
IItemPropertyDescriptor . |
int |
isApplicable(VDomainModelReference domainModelReference)
Returns the priority of the corresponding control for the provided VDomainModelReference . |
TableDomainModelReferenceTester
public TableDomainModelReferenceTester()
isApplicable
public int isApplicable(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor,
org.eclipse.emf.ecore.EObject eObject)
- Returns the priority of the corresponding control for the combination of the
EObject
and the
IItemPropertyDescriptor
.
- Specified by:
isApplicable
in interface ECPApplicableTester
- Parameters:
itemPropertyDescriptor
- the IItemPropertyDescriptor
to testeObject
- the EObject
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.- See Also:
ECPApplicableTester.isApplicable(org.eclipse.emf.edit.provider.IItemPropertyDescriptor,
org.eclipse.emf.ecore.EObject)
isApplicable
public int isApplicable(VDomainModelReference domainModelReference)
- Returns the priority of the corresponding control for the provided
VDomainModelReference
.
- Specified by:
isApplicable
in interface ECPApplicableTester
- Parameters:
domainModelReference
- the VDomainModelReference
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.- See Also:
ECPApplicableTester.isApplicable(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference)
isApplicable
public int isApplicable(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
- Returns the priority of the corresponding control for the combination of the
EObject
and the
EStructuralFeature
.
- Specified by:
isApplicable
in interface ECPApplicableTester
- Parameters:
eObject
- the EObject
to testeStructuralFeature
- the EStructuralFeature
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.- See Also:
ECPApplicableTester.isApplicable(org.eclipse.emf.ecore.EObject,
org.eclipse.emf.ecore.EStructuralFeature)
Copyright © 2015. All Rights Reserved.