Class MultiReferenceRevealProvider
- java.lang.Object
-
- org.eclipse.emf.ecp.view.internal.control.multireference.MultiReferenceRevealProvider
-
- All Implemented Interfaces:
Vendor<RevealStep>
,EMFFormsRevealProvider
public class MultiReferenceRevealProvider extends java.lang.Object implements EMFFormsRevealProvider
A reveal provider for multi-reference controls that show contained objects (not just cross-referenced).
-
-
Constructor Summary
Constructors Constructor Description MultiReferenceRevealProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
canReveal(ViewModelContext context, VControl control, EMFFormsDatabinding databinding)
I bid on theelement
if it is a simpleVControl
specified by a DMR that resolves to a multi-valued containment reference.RevealStep
reveal(ViewModelContext context, RevealHelper helper, VControl control, org.eclipse.emf.ecore.EObject object, EMFFormsDatabinding databinding)
Create a terminal reveal step to select and reveal theobject
in the renderedelement
.
-
-
-
Method Detail
-
canReveal
public java.lang.Double canReveal(ViewModelContext context, VControl control, EMFFormsDatabinding databinding) throws DatabindingFailedException
I bid on theelement
if it is a simpleVControl
specified by a DMR that resolves to a multi-valued containment reference.- Parameters:
context
- the view model context in which to resolve the DMRcontrol
- the control to bid ondatabinding
- the databinding service in which to resolve the DMR- Returns:
- my bid
- Throws:
DatabindingFailedException
- on failure to resolve the DMR
-
reveal
public RevealStep reveal(ViewModelContext context, RevealHelper helper, VControl control, org.eclipse.emf.ecore.EObject object, EMFFormsDatabinding databinding) throws DatabindingFailedException
Create a terminal reveal step to select and reveal theobject
in the renderedelement
.- Parameters:
context
- the view model context in which to find a renderer for the treehelper
- a helper for deferred revealingcontrol
- the multi-reference control view modelobject
- the object to revealdatabinding
- the databinding service in which to resolve the DMR- Returns:
- the drill-down reveal step
- Throws:
DatabindingFailedException
- on failure to resolve the DMR
-
-