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
FieldsModifier and TypeFieldDescriptionstatic final StringThe ID of the view as specified by the extension.Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new listener for the RequestManualTermination event.voidcreatePartControl(Composite parent) This is a callback that will allow us to create the viewer and initialize it.voidLogic witch should be executed when the Optimization is terminated by the Termination Criteria Manager.voidhandleOutputChangedEvent(Tree outPut) Logic witch should be executed when the Termination Criteria Manager updates the output tree.voidLogic witch should be executed when a TerminationCriteriaManagerInitialized is fired.voidRemoves a listener from the RequestManualTermination event.voidsetFocus()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, setPartNameMethods 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, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods 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:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart
-
setFocus
public void setFocus()Passing the focus request to the viewer's control.- Specified by:
setFocusin interfaceIWorkbenchPart- Specified by:
setFocusin classWorkbenchPart
-
handleTerminationCriteriaManagerInitializedEvent
Description copied from interface:ITerminationCriteriaManagerInitializedListenerLogic witch should be executed when a TerminationCriteriaManagerInitialized is fired.- Specified by:
handleTerminationCriteriaManagerInitializedEventin interfaceITerminationCriteriaManagerInitializedListener
-
handleOutputChangedEvent
Description copied from interface:IOutputChangedListenerLogic witch should be executed when the Termination Criteria Manager updates the output tree.- Specified by:
handleOutputChangedEventin interfaceIOutputChangedListener
-
handleOptimizationTerminatedListener
Description copied from interface:IOptimizationTerminatedListenerLogic witch should be executed when the Optimization is terminated by the Termination Criteria Manager.- Specified by:
handleOptimizationTerminatedListenerin interfaceIOptimizationTerminatedListener- Parameters:
instance- instance of the current Termination Criteria Manager.
-
addRequestManualTerminationListener
Description copied from interface:IRequestManualTerminationProviderAdds a new listener for the RequestManualTermination event.- Specified by:
addRequestManualTerminationListenerin interfaceIRequestManualTerminationProvider- Parameters:
listener- IRequestManualTerminationListener listener
-
removeRequestManualTerminationListener
Description copied from interface:IRequestManualTerminationProviderRemoves a listener from the RequestManualTermination event.- Specified by:
removeRequestManualTerminationListenerin interfaceIRequestManualTerminationProvider- Parameters:
listener- IRequestManualTerminationListener listener
-