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
Modifier and TypeFieldDescriptionstatic final String
The ID of the view as specified by the extension.Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
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
Logic witch should be executed when a TerminationCriteriaManagerInitialized is fired.void
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 Details
-
ID
The ID of the view as specified by the extension.- See Also:
-
terminationCriteriaManagerOutput
-
-
Constructor Details
-
TerminationCriteriaView
public TerminationCriteriaView()The constructor.
-
-
Method Details
-
createPartControl
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
Description copied from interface:ITerminationCriteriaManagerInitializedListener
Logic witch should be executed when a TerminationCriteriaManagerInitialized is fired.- Specified by:
handleTerminationCriteriaManagerInitializedEvent
in interfaceITerminationCriteriaManagerInitializedListener
-
handleOutputChangedEvent
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
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
Description copied from interface:IRequestManualTerminationProvider
Adds a new listener for the RequestManualTermination event.- Specified by:
addRequestManualTerminationListener
in interfaceIRequestManualTerminationProvider
- Parameters:
listener
- IRequestManualTerminationListener listener
-
removeRequestManualTerminationListener
Description copied from interface:IRequestManualTerminationProvider
Removes a listener from the RequestManualTermination event.- Specified by:
removeRequestManualTerminationListener
in interfaceIRequestManualTerminationProvider
- Parameters:
listener
- IRequestManualTerminationListener listener
-