Class MeasurementsTreeViewer
java.lang.Object
org.palladiosimulator.measurementsui.abstractviewer.ComponentViewer
org.palladiosimulator.measurementsui.abstractviewer.SaveableComponentViewer
org.palladiosimulator.measurementsui.abstractviewer.MeasurementsTreeViewer
- Direct Known Subclasses:
EmptyMeasuringPointsTreeViewer
,MonitorTreeViewer
,SloTreeViewer
Creates a eclipse.swt TreeView based on a parsley TreeView project.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.eclipse.emf.parsley.viewers.ViewerFactory
protected TreeViewer
Fields inherited from class org.palladiosimulator.measurementsui.abstractviewer.SaveableComponentViewer
commandService, dirty
Fields inherited from class org.palladiosimulator.measurementsui.abstractviewer.ComponentViewer
editingDomain, injector, modelRepository, resource
-
Constructor Summary
ConstructorDescriptionMeasurementsTreeViewer
(Composite parent, MDirtyable dirty, ECommandService commandService, EObject modelRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a DoubleClickMouseListener which changes Attributes if an icon in the treeview is double clicked.void
addSelectionListener
(ESelectionService selectionService) Adds a listener which connects the selected tree item to the ESelectionService.Return the TreeViewerprotected void
initParsley
(Composite parent) Initialize the connection between the e4 plugin and the Parsley TreeViewvoid
update()
Updates the underlying resources of the tree and redraws the componentvoid
Methods inherited from class org.palladiosimulator.measurementsui.abstractviewer.SaveableComponentViewer
redo, save, save, undo, undoAll, updateResource
Methods inherited from class org.palladiosimulator.measurementsui.abstractviewer.ComponentViewer
getModelRepository, initContextMenu, initDragAndDrop, initEditingDomain, initInjector, setModelRepository
-
Field Details
-
treeViewer
-
treeFactory
protected org.eclipse.emf.parsley.viewers.ViewerFactory treeFactory
-
-
Constructor Details
-
MeasurementsTreeViewer
public MeasurementsTreeViewer(Composite parent, MDirtyable dirty, ECommandService commandService, EObject modelRepository) - Parameters:
parent
- a container where the view is embeddeddirty
- the dirty state which indicates whether there were changes made in the viewercommandService
- a service of the eclipse application in order to make the tree view saveablemodelRepository
- EObject which is shown in the view
-
-
Method Details
-
addMouseListener
public void addMouseListener()Adds a DoubleClickMouseListener which changes Attributes if an icon in the treeview is double clicked. -
getViewer
Return the TreeViewer- Specified by:
getViewer
in classComponentViewer
- Returns:
- the current TreeViewer
-
addSelectionListener
Adds a listener which connects the selected tree item to the ESelectionService.- Specified by:
addSelectionListener
in classSaveableComponentViewer
- Parameters:
selectionService
- the Eclipse SelectionService to which the selected element is passed on
-
initParsley
Description copied from class:ComponentViewer
Initialize the connection between the e4 plugin and the Parsley TreeView- Specified by:
initParsley
in classComponentViewer
- Parameters:
parent
- composite container
-
update
- Specified by:
update
in classSaveableComponentViewer
-
update
public void update()Description copied from class:ComponentViewer
Updates the underlying resources of the tree and redraws the component- Specified by:
update
in classComponentViewer
-