Class ComponentViewer
java.lang.Object
org.palladiosimulator.measurementsui.abstractviewer.ComponentViewer
- Direct Known Subclasses:
SaveableComponentViewer
,WizardTableViewer
Abstract component class to connect a parsley view to an eclipse 4 plugin
-
Field Summary
Modifier and TypeFieldDescriptionprotected EditingDomain
protected com.google.inject.Injector
protected EObject
protected Resource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract StructuredViewer
protected void
Initialize the parsley context menuprotected void
Initialize the parsley drag and drop functionprotected void
Returns the parsley EditingDomainprotected abstract void
Initalizes the google guice injector attribute with the injector of the respective parsley viewprotected abstract void
initParsley
(Composite parent) Initialize the connection between the e4 plugin and the Parsley TreeViewvoid
setModelRepository
(EObject modelRepository) abstract void
update()
Updates the underlying resources of the tree and redraws the componentprotected Resource
updateResource
(EObject model)
-
Field Details
-
injector
protected com.google.inject.Injector injector -
resource
-
editingDomain
-
modelRepository
-
-
Constructor Details
-
ComponentViewer
- Parameters:
parent
- container where the tree viewer is placed inmodelRepository
- EObject which is shown in the view
-
-
Method Details
-
initInjector
protected abstract void initInjector()Initalizes the google guice injector attribute with the injector of the respective parsley view -
getModelRepository
- Returns:
- the repository of the current view. For Example the monitorrepository
-
setModelRepository
-
initParsley
Initialize the connection between the e4 plugin and the Parsley TreeView- Parameters:
parent
- composite container
-
update
public abstract void update()Updates the underlying resources of the tree and redraws the component -
initEditingDomain
protected void initEditingDomain()Returns the parsley EditingDomain -
getViewer
- Returns:
- the current viewer of the shown composite
-
updateResource
- Parameters:
model
- EMF Model of the shown data- Returns:
- the resource using the resource set of the editing domain
-
initDragAndDrop
protected void initDragAndDrop()Initialize the parsley drag and drop function -
initContextMenu
protected void initContextMenu()Initialize the parsley context menu
-