Class DistanceMetricsSection
java.lang.Object
org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
org.palladiosimulator.edp2.distancemetrics.ui.DistanceMetricsSection
- All Implemented Interfaces:
ISelectionChangedListener
,ISection
public class DistanceMetricsSection
extends AbstractPropertySection
implements ISelectionChangedListener
This class creates the UI interface for the distance metric section in a tab.
-
Field Summary
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
STANDARD_LABEL_WIDTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createControls
(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) void
refresh()
void
Checks, if selection of distance metric viewers have changed.Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
aboutToBeHidden, aboutToBeShown, dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, setInput, shouldUseExtraSpace
-
Constructor Details
-
DistanceMetricsSection
public DistanceMetricsSection()
-
-
Method Details
-
createControls
- Specified by:
createControls
in interfaceISection
- Overrides:
createControls
in classAbstractPropertySection
-
refresh
public void refresh()- Specified by:
refresh
in interfaceISection
- Overrides:
refresh
in classAbstractPropertySection
-
selectionChanged
Checks, if selection of distance metric viewers have changed. Also checks if item entries with same metrics are selected and depending on that activate or deactive the calculate button, since two different metrics can't be compared.- Specified by:
selectionChanged
in interfaceISelectionChangedListener
-