Interface EMFFormsRevealService
-
- All Known Implementing Classes:
EMFFormsRevealServiceImpl
public interface EMFFormsRevealService
A service that mediates requests to reveal (navigate to) objects in an EMF Forms Editor with providers that know how to fulfil those requests.- Since:
- 1.22
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRevealProvider(EMFFormsRevealProvider provider)
Register a reveal provider.void
removeRevealProvider(EMFFormsRevealProvider provider)
Unregister a reveal provider.boolean
reveal(org.eclipse.emf.ecore.EObject object)
Attempt to reveal anobject
in the most appropriate (by best effort) control in the current editor context.boolean
reveal(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
Attempt to reveal afeature
of anobject
in the most appropriate (by best effort) control in the current editor context.RevealStep
reveal(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, VElement scope)
Attempt to reveal afeature
of anobject
in the most appropriate (by best effort) control within the givenscope
.RevealStep
reveal(org.eclipse.emf.ecore.EObject object, VElement scope)
Attempt to reveal anobject
in the most appropriate (by best effort) control within the givenscope
.
-
-
-
Method Detail
-
reveal
boolean reveal(org.eclipse.emf.ecore.EObject object)
Attempt to reveal anobject
in the most appropriate (by best effort) control in the current editor context. Effectively equivalent toreveal(EObject, VElement)
in the topmost scope (the rootVView
) of the context.- Parameters:
object
- an object to reveal- Returns:
true
if theobject
was revealed;false
, otherwise
-
reveal
boolean reveal(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
Attempt to reveal afeature
of anobject
in the most appropriate (by best effort) control in the current editor context. Effectively equivalent toreveal(EObject, EStructuralFeature, VElement)
in the topmost scope (the rootVView
) of the context.- Parameters:
object
- an object to revealfeature
- a specific feature (implying a detail control) to reveal- Returns:
true
if theobject
was revealed;false
, otherwise
-
reveal
RevealStep reveal(org.eclipse.emf.ecore.EObject object, VElement scope)
Attempt to reveal anobject
in the most appropriate (by best effort) control within the givenscope
. Most applications will not need to interact with reveal steps directly but only through thereveal(EObject)
API; reveal providers may need this API to delegate a drill down.- Parameters:
object
- an object to revealscope
- a control within which to attempt to reveal theobject
- Returns:
- a step-wise chain of operations to progressively reveal the
object
in the givenscope
, or a failed step if none
-
reveal
RevealStep reveal(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, VElement scope)
Attempt to reveal afeature
of anobject
in the most appropriate (by best effort) control within the givenscope
. Most applications will not need to interact with reveal steps directly but only through thereveal(EObject, EStructuralFeature)
API; reveal providers may need this API to delegate a drill down.- Parameters:
object
- an object to revealfeature
- a specific feature (implying a detail control) to revealscope
- a control within which to attempt to reveal theobject
- Returns:
- a step-wise chain of operations to progressively reveal the
object
in the givenscope
, or a failed step if none
-
addRevealProvider
void addRevealProvider(EMFFormsRevealProvider provider)
Register a reveal provider.- Parameters:
provider
- the reveal provider to register
-
removeRevealProvider
void removeRevealProvider(EMFFormsRevealProvider provider)
Unregister a reveal provider.- Parameters:
provider
- the reveal provider to unregister
-
-