Package de.uka.ipd.sdq.tcfmoop.views
Class TerminationCriteriaView
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.ViewPart
-
- de.uka.ipd.sdq.tcfmoop.views.TerminationCriteriaView
-
- All Implemented Interfaces:
IOptimizationTerminatedListener
,IOutputChangedListener
,IRequestManualTerminationProvider
,ITerminationCriteriaManagerInitializedListener
,IAdaptable
,IExecutableExtension
,IPersistable
,IViewPart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,IWorkbenchPartOrientation
public class TerminationCriteriaView extends ViewPart implements IOutputChangedListener, ITerminationCriteriaManagerInitializedListener, IOptimizationTerminatedListener, IRequestManualTerminationProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
The ID of the view as specified by the extension.Tree
terminationCriteriaManagerOutput
-
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
-
Constructor Summary
Constructors Constructor Description TerminationCriteriaView()
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRequestManualTerminationListener(IRequestManualTerminationListener listener)
Adds a new listener for the RequestManualTermination event.void
createPartControl(Composite parent)
This is a callback that will allow us to create the viewer and initialize it.void
handleOptimizationTerminatedListener(TerminationCriteriaManager instance)
Logic witch should be executed when the Optimization is terminated by the Termination Criteria Manager.void
handleOutputChangedEvent(Tree outPut)
Logic witch should be executed when the Termination Criteria Manager updates the output tree.void
handleTerminationCriteriaManagerInitializedEvent(ITerminationCriteriaManager instance)
Logic witch should be executed when a TerminationCriteriaManagerInitialized is fired.void
removeRequestManualTerminationListener(IRequestManualTerminationListener listener)
Removes a listener from the RequestManualTermination event.void
setFocus()
Passing the focus request to the viewer's control.-
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
-
-
-
Field Detail
-
ID
public static final String ID
The ID of the view as specified by the extension.- See Also:
- Constant Field Values
-
terminationCriteriaManagerOutput
public Tree terminationCriteriaManagerOutput
-
-
Method Detail
-
createPartControl
public void createPartControl(Composite parent)
This is a callback that will allow us to create the viewer and initialize it.- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
-
setFocus
public void setFocus()
Passing the focus request to the viewer's control.- Specified by:
setFocus
in interfaceIWorkbenchPart
- Specified by:
setFocus
in classWorkbenchPart
-
handleTerminationCriteriaManagerInitializedEvent
public void handleTerminationCriteriaManagerInitializedEvent(ITerminationCriteriaManager instance)
Description copied from interface:ITerminationCriteriaManagerInitializedListener
Logic witch should be executed when a TerminationCriteriaManagerInitialized is fired.- Specified by:
handleTerminationCriteriaManagerInitializedEvent
in interfaceITerminationCriteriaManagerInitializedListener
-
handleOutputChangedEvent
public void handleOutputChangedEvent(Tree outPut)
Description copied from interface:IOutputChangedListener
Logic witch should be executed when the Termination Criteria Manager updates the output tree.- Specified by:
handleOutputChangedEvent
in interfaceIOutputChangedListener
-
handleOptimizationTerminatedListener
public void handleOptimizationTerminatedListener(TerminationCriteriaManager instance)
Description copied from interface:IOptimizationTerminatedListener
Logic witch should be executed when the Optimization is terminated by the Termination Criteria Manager.- Specified by:
handleOptimizationTerminatedListener
in interfaceIOptimizationTerminatedListener
- Parameters:
instance
- instance of the current Termination Criteria Manager.
-
addRequestManualTerminationListener
public void addRequestManualTerminationListener(IRequestManualTerminationListener listener)
Description copied from interface:IRequestManualTerminationProvider
Adds a new listener for the RequestManualTermination event.- Specified by:
addRequestManualTerminationListener
in interfaceIRequestManualTerminationProvider
- Parameters:
listener
- IRequestManualTerminationListener listener
-
removeRequestManualTerminationListener
public void removeRequestManualTerminationListener(IRequestManualTerminationListener listener)
Description copied from interface:IRequestManualTerminationProvider
Removes a listener from the RequestManualTermination event.- Specified by:
removeRequestManualTerminationListener
in interfaceIRequestManualTerminationProvider
- Parameters:
listener
- IRequestManualTerminationListener listener
-
-