org.eclipse.emf.ecp.view.editor.controls
Class RootEClassControlIDETester

java.lang.Object
  extended by org.eclipse.emf.ecp.view.editor.controls.RootEClassControlIDETester
All Implemented Interfaces:
ECPApplicableTester

public class RootEClassControlIDETester
extends Object
implements ECPApplicableTester

Author:
Eugen

Field Summary
 
Fields inherited from interface org.eclipse.emf.ecp.edit.spi.util.ECPApplicableTester
NOT_APPLICABLE
 
Constructor Summary
RootEClassControlIDETester()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootEClassControlIDETester

public RootEClassControlIDETester()
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 the EObject and the IItemPropertyDescriptor.

Specified by:
isApplicable in interface ECPApplicableTester
Parameters:
itemPropertyDescriptor - the IItemPropertyDescriptor to test
eObject - 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(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.

Specified by:
isApplicable in interface ECPApplicableTester
Parameters:
eObject - the EObject to test
feature - 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)

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)


Copyright © 2014. All Rights Reserved.