public class EMFFormsRevealServiceImpl extends Object implements EMFFormsRevealService
Constructor and Description |
---|
EMFFormsRevealServiceImpl(EMFFormsViewContext viewContext)
Initializes me with my view context.
|
Modifier and Type | Method and Description |
---|---|
void |
addRevealProvider(EMFFormsRevealProvider provider)
Register a reveal provider.
|
protected EMFFormsViewContext |
getViewContext(VElement element)
Get the nearest context for a view model
element . |
void |
removeRevealProvider(EMFFormsRevealProvider provider)
Unregister a reveal provider.
|
boolean |
reveal(org.eclipse.emf.ecore.EObject object)
Attempt to reveal an
object 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 a
feature of an object 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 a
feature of an object in the most appropriate
(by best effort) control within the given scope . |
RevealStep |
reveal(org.eclipse.emf.ecore.EObject object,
VElement scope)
Attempt to reveal an
object in the most appropriate (by best effort)
control within the given scope . |
public EMFFormsRevealServiceImpl(EMFFormsViewContext viewContext)
viewContext
- my view contextpublic boolean reveal(org.eclipse.emf.ecore.EObject object)
EMFFormsRevealService
object
in the most appropriate (by best effort)
control in the current editor context. Effectively equivalent to
EMFFormsRevealService.reveal(EObject, VElement)
in the topmost scope (the root VView
)
of the context.reveal
in interface EMFFormsRevealService
object
- an object to revealtrue
if the object
was revealed; false
, otherwisepublic boolean reveal(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
EMFFormsRevealService
feature
of an object
in the most appropriate
(by best effort) control in the current editor context. Effectively equivalent to
EMFFormsRevealService.reveal(EObject, EStructuralFeature, VElement)
in the topmost scope
(the root VView
) of the context.reveal
in interface EMFFormsRevealService
object
- an object to revealfeature
- a specific feature (implying a detail control) to revealtrue
if the object
was revealed; false
, otherwisepublic RevealStep reveal(org.eclipse.emf.ecore.EObject object, VElement scope)
EMFFormsRevealService
object
in the most appropriate (by best effort)
control within the given scope
. Most applications will not need to interact
with reveal steps directly but only through the EMFFormsRevealService.reveal(EObject)
API;
reveal providers may need this API to delegate
a drill down.reveal
in interface EMFFormsRevealService
object
- an object to revealscope
- a control within which to attempt to reveal the object
object
in the given scope
, or a failed step if nonepublic RevealStep reveal(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, VElement scope)
EMFFormsRevealService
feature
of an object
in the most appropriate
(by best effort) control within the given scope
. Most applications will not need
to interact with reveal steps directly but only through the
EMFFormsRevealService.reveal(EObject, EStructuralFeature)
API;
reveal providers may need this API to delegate
a drill down.reveal
in interface EMFFormsRevealService
object
- an object to revealfeature
- a specific feature (implying a detail control) to revealscope
- a control within which to attempt to reveal the object
object
in the given scope
, or a failed step if noneprotected EMFFormsViewContext getViewContext(VElement element)
element
. This is either some active
detail context or the root context that owns me.element
- a view-model elementpublic void addRevealProvider(EMFFormsRevealProvider provider)
EMFFormsRevealService
addRevealProvider
in interface EMFFormsRevealService
provider
- the reveal provider to registerpublic void removeRevealProvider(EMFFormsRevealProvider provider)
EMFFormsRevealService
removeRevealProvider
in interface EMFFormsRevealService
provider
- the reveal provider to unregisterCopyright © 2019. All rights reserved.