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
Constructors Constructor Description DistanceMetricsSection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage)
void
refresh()
void
selectionChanged(SelectionChangedEvent event)
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
-
-
-
-
Method Detail
-
createControls
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage)
- Specified by:
createControls
in interfaceISection
- Overrides:
createControls
in classAbstractPropertySection
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceISection
- Overrides:
refresh
in classAbstractPropertySection
-
selectionChanged
public void selectionChanged(SelectionChangedEvent event)
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
-
-