org.eclipse.emf.ecp.ui.util
Interface ECPModelElementOpenTester
public interface ECPModelElementOpenTester
This interface can be extended in order to provide dynamic testers for the model element opener. So if you want to
check specific information of an EObject aside the EClass you should implement this.
- Author:
- Eugen Neufeld
Field Summary |
static int |
NOT_APPLICABLE
Return this whenever the opener can't open a specific element. |
NOT_APPLICABLE
static final int NOT_APPLICABLE
- Return this whenever the opener can't open a specific element.
- See Also:
- Constant Field Values
isApplicable
int isApplicable(Object eObject)
- This is called by the ECPHandlerHelper to check how well the corresponding
ECPModelElementOpener
can
handle
the current Obejct.
The Tester with the highest result will be chosen. If the corresponding ECPModelElementOpener
can't
handle the EObject, the result should be NOT_APPLICABLE
.
- Parameters:
eObject
- the Object
to open
- Returns:
- an integer defining how fitting the corresponding opener is.
Copyright © 2015. All Rights Reserved.