public abstract class ViatraViewersViewSupport extends ViatraViewersPartSupport
ViewPart
s wishing to use VIATRA Viewers.Modifier and Type | Field and Description |
---|---|
protected IModelConnectorTypeEnum |
connectorType
Defines the matching scope for the underlying
ViatraQueryEngine . |
protected EMFScope |
modelSource |
protected ViewerState |
state
The
ViewerState that represents the stateful model behind the contents shown by the owner. |
configuration, owner
Constructor and Description |
---|
ViatraViewersViewSupport(org.eclipse.ui.IViewPart _owner,
ViewersComponentConfiguration _config,
IModelConnectorTypeEnum _scope)
Constructs a new View support instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
bindModel()
Subclasses bind their viewer models here.
|
void |
createPartControl(org.eclipse.swt.widgets.Composite _parent,
org.eclipse.swt.widgets.Control _contents)
Create the SWT UI for the owner.
|
void |
dispose()
Dispose the support instance.
|
protected EMFScope |
extractModelSource(java.util.List<java.lang.Object> objects) |
protected ViatraQueryEngine |
getEngine() |
protected org.eclipse.ui.IViewPart |
getOwner() |
protected void |
onSelectionChanged(java.util.List<java.lang.Object> objects) |
protected abstract void |
unbindModel()
Subclasses unbind their viewer models here.
|
init
protected IModelConnectorTypeEnum connectorType
ViatraQueryEngine
. TODO is IModelConnectorTypeEnum
the proper choice for this?protected ViewerState state
ViewerState
that represents the stateful model behind the contents shown by the owner.protected EMFScope modelSource
public ViatraViewersViewSupport(org.eclipse.ui.IViewPart _owner, ViewersComponentConfiguration _config, IModelConnectorTypeEnum _scope)
protected org.eclipse.ui.IViewPart getOwner()
public void dispose()
ViatraViewersPartSupport
IWorkbenchPart
it starting to dispose itself.dispose
in class ViatraViewersPartSupport
protected void onSelectionChanged(java.util.List<java.lang.Object> objects)
onSelectionChanged
in class ViatraViewersPartSupport
protected EMFScope extractModelSource(java.util.List<java.lang.Object> objects) throws ViatraQueryException
ViatraQueryException
protected ViatraQueryEngine getEngine()
public void createPartControl(org.eclipse.swt.widgets.Composite _parent, org.eclipse.swt.widgets.Control _contents)
_parent
- the SWT part received by the owner in its createPartControl method_contents
- the SWT UI to be displayed for actual contentsprotected abstract void bindModel()
protected abstract void unbindModel()