Class MeasurementsDashboardView
- java.lang.Object
-
- org.palladiosimulator.simulizar.ui.measurementsdashboard.parts.MeasurementsDashboardView
-
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
public class MeasurementsDashboardView extends Object implements PropertyChangeListener
Eclipse e4 view which gives the user an overview of all existing Monitors and MeasuringPoints in a selected MonitorRepository.
-
-
Constructor Summary
Constructors Constructor Description MeasurementsDashboardView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createPartControl(Composite parent)
Creates the menu items and controls for the simulizar measuring point viewvoid
propertyChange(PropertyChangeEvent event)
void
redo()
Redos change of the monitor tree viewervoid
save()
Saves the current data in the tree viewvoid
undo()
Undos changes on the monitor tree viewervoid
updateMeasurementsDashboardView()
Updates the dashboard by reloading the data and refreshing the viewsvoid
updateMeasurementsDashboardView(IProject project)
Updates the dashboard by loading the data corresponding to the given project and refreshing the viewsvoid
updateMonitorRepositoryComboBox()
If more then 1 monitorRepository exists in the current project this updates the MonitorRepositoryComboBoxvoid
updateProjectComboBox()
Adds every project in the workspace that has an .aird file to the projectsComboBoxvoid
updateSLORepositoryComboBox()
If more then 1 monitorRepository exists in the current project this updates the MonitorRepositoryComboBox
-
-
-
Method Detail
-
createPartControl
@PostConstruct public void createPartControl(Composite parent)
Creates the menu items and controls for the simulizar measuring point view- Parameters:
parent
- the composite of the empty view
-
updateMonitorRepositoryComboBox
public void updateMonitorRepositoryComboBox()
If more then 1 monitorRepository exists in the current project this updates the MonitorRepositoryComboBox
-
updateSLORepositoryComboBox
public void updateSLORepositoryComboBox()
If more then 1 monitorRepository exists in the current project this updates the MonitorRepositoryComboBox
-
updateProjectComboBox
public void updateProjectComboBox()
Adds every project in the workspace that has an .aird file to the projectsComboBox
-
updateMeasurementsDashboardView
public void updateMeasurementsDashboardView(IProject project)
Updates the dashboard by loading the data corresponding to the given project and refreshing the views- Parameters:
project
- to update
-
updateMeasurementsDashboardView
public void updateMeasurementsDashboardView()
Updates the dashboard by reloading the data and refreshing the views- Parameters:
project
- to update
-
undo
public void undo()
Undos changes on the monitor tree viewer
-
redo
public void redo()
Redos change of the monitor tree viewer
-
save
@Persist public void save() throws IOException
Saves the current data in the tree view- Parameters:
dirty
- the dirty state which indicates whether there were changes made- Throws:
IOException
- if the save command fails
-
propertyChange
public void propertyChange(PropertyChangeEvent event)
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
-