Class DistanceMetricViewer
java.lang.Object
org.palladiosimulator.edp2.distancemetrics.ui.DistanceMetricViewer
A list which shows the all measurements from the selected visualization.
It has two columns. One for the description and one for the metric of
the given measurement.
-
Constructor Summary
ConstructorDescriptionDistanceMetricViewer
(Composite composite) Initializes the table viewer with a given composite. -
Method Summary
Modifier and TypeMethodDescriptionHelper method, that returns the Edp2DataTupleDataSource from the current selection of the DistanceMetricViewer.Gives you the last selected input of this DistanceMetricViewer.Returns the TableViewer represented by this class.
-
Constructor Details
-
DistanceMetricViewer
Initializes the table viewer with a given composite.- Parameters:
composite
- The Composite, the DistanceMetricViewer should be displayed on.
-
-
Method Details
-
getViewer
Returns the TableViewer represented by this class.- Returns:
- Returns the created TableViewer object.
-
getLastSelectedInput
Gives you the last selected input of this DistanceMetricViewer.- Returns:
- Returns the last selected AbstractVisualizationSingleDatastreamInput or null, if no instantiation is possible.
-
getDataSource
Helper method, that returns the Edp2DataTupleDataSource from the current selection of the DistanceMetricViewer. selection should be taken from.- Returns:
- Returns the data source of the current selection of the passed DistanceMetricViewer. Returns null, if data source could not be retrieved e.g. due to instantiation issues.
-