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 Details

    • MeasurementsDashboardView

      public MeasurementsDashboardView()
  • Method Details

    • 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 interface PropertyChangeListener