public interface IStructuredReferenceOpenHandler
Specific MMI UI adapters should implement this interface
to support opening Editors/Views on domain elements when user
double clicks on domain elements represented on a diagram.
OpenMMIElementEditPolicy
requests the selected
IStructuredReferenceOpenHandler
to open the editor/view on
the selected element.
Modifier and Type | Method and Description |
---|---|
boolean |
canOpenStructuredReference(java.lang.Object referencedContext,
StructuredReference sRef)
Returns
true if this handler can open a given vr . |
void |
openStructuredReference(java.lang.Object referencedContext,
StructuredReference sRef,
org.eclipse.core.runtime.IProgressMonitor monitor)
Opens the
StructuredReference in platform specific editor/view. |
boolean canOpenStructuredReference(java.lang.Object referencedContext, StructuredReference sRef)
true
if this handler can open a given vr
.sRef
- StructuredReference to be tested.true
if this handler can open the given StructuredReference
, else false
.void openStructuredReference(java.lang.Object referencedContext, StructuredReference sRef, org.eclipse.core.runtime.IProgressMonitor monitor)
StructuredReference
in platform specific editor/view.sRef
- StructuredReference
to open.monitor
- IProgressMonitor
that can be used to display the progress.