TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.common.ui.trace.internal.actions
Class AbstractListenerActionDelegate

java.lang.Object
  extended by org.eclipse.hyades.trace.ui.actions.AbstractProfileActionDelegate
      extended by org.eclipse.tptp.platform.common.ui.trace.internal.actions.AbstractListenerActionDelegate
All Implemented Interfaces:
java.util.EventListener, org.eclipse.hyades.trace.ui.IProfileEventListener, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IPageListener, org.eclipse.ui.IPartListener, org.eclipse.ui.ISelectionListener, org.eclipse.ui.IViewActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
Direct Known Subclasses:
AbstractListenerActionDelegate, RefreshViewsActionDelegate, RunGCActionDelegate

public abstract class AbstractListenerActionDelegate
extends org.eclipse.hyades.trace.ui.actions.AbstractProfileActionDelegate
implements org.eclipse.hyades.trace.ui.IProfileEventListener, org.eclipse.ui.IPartListener, org.eclipse.ui.IPageListener


Field Summary
protected  org.eclipse.ui.IWorkbenchWindow fWindow
          The window associated with this action delegate
 
Fields inherited from class org.eclipse.hyades.trace.ui.actions.AbstractProfileActionDelegate
fAction, fInitialized, fSelection, fViewPart
 
Constructor Summary
AbstractListenerActionDelegate()
           
 
Method Summary
 void dispose()
           
protected  void doHandleProfileEvent(org.eclipse.hyades.trace.ui.ProfileEvent event)
          Default implementation to update on specific profile events.
protected  org.eclipse.ui.IWorkbenchPage getPage()
          Returns the page that this action works in.
protected  org.eclipse.ui.IWorkbenchWindow getWindow()
           
 void handleProfileEvent(org.eclipse.hyades.trace.ui.ProfileEvent event)
           
 void init(org.eclipse.ui.IViewPart view)
           
 void init(org.eclipse.ui.IWorkbenchWindow window)
           
 void pageActivated(org.eclipse.ui.IWorkbenchPage page)
           
 void pageClosed(org.eclipse.ui.IWorkbenchPage page)
           
 void pageOpened(org.eclipse.ui.IWorkbenchPage page)
           
 void partActivated(org.eclipse.ui.IWorkbenchPart part)
           
 void partBroughtToTop(org.eclipse.ui.IWorkbenchPart part)
           
 void partClosed(org.eclipse.ui.IWorkbenchPart part)
           
 void partDeactivated(org.eclipse.ui.IWorkbenchPart part)
           
 void partOpened(org.eclipse.ui.IWorkbenchPart part)
           
protected  void setWindow(org.eclipse.ui.IWorkbenchWindow window)
           
 
Methods inherited from class org.eclipse.hyades.trace.ui.actions.AbstractProfileActionDelegate
doAction, enableForMultiSelection, getAction, getEnableStateForSelection, getSelection, getView, initialize, isEnabledFor, isInitialized, run, selectionChanged, selectionChanged, setAction, setInitialized, setSelection, setView, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fWindow

protected org.eclipse.ui.IWorkbenchWindow fWindow
The window associated with this action delegate

Constructor Detail

AbstractListenerActionDelegate

public AbstractListenerActionDelegate()
Method Detail

partActivated

public void partActivated(org.eclipse.ui.IWorkbenchPart part)
Specified by:
partActivated in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partActivated(IWorkbenchPart)

partBroughtToTop

public void partBroughtToTop(org.eclipse.ui.IWorkbenchPart part)
Specified by:
partBroughtToTop in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partBroughtToTop(IWorkbenchPart)

partClosed

public void partClosed(org.eclipse.ui.IWorkbenchPart part)
Specified by:
partClosed in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partClosed(IWorkbenchPart)

partDeactivated

public void partDeactivated(org.eclipse.ui.IWorkbenchPart part)
Specified by:
partDeactivated in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partDeactivated(IWorkbenchPart)

partOpened

public void partOpened(org.eclipse.ui.IWorkbenchPart part)
Specified by:
partOpened in interface org.eclipse.ui.IPartListener
See Also:
IPartListener.partOpened(IWorkbenchPart)

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
Overrides:
dispose in class org.eclipse.hyades.trace.ui.actions.AbstractProfileActionDelegate

handleProfileEvent

public void handleProfileEvent(org.eclipse.hyades.trace.ui.ProfileEvent event)
Specified by:
handleProfileEvent in interface org.eclipse.hyades.trace.ui.IProfileEventListener

getPage

protected org.eclipse.ui.IWorkbenchPage getPage()
Returns the page that this action works in.


getWindow

protected org.eclipse.ui.IWorkbenchWindow getWindow()

setWindow

protected void setWindow(org.eclipse.ui.IWorkbenchWindow window)

doHandleProfileEvent

protected void doHandleProfileEvent(org.eclipse.hyades.trace.ui.ProfileEvent event)
Default implementation to update on specific profile events. Subclasses should override to handle events differently.


init

public void init(org.eclipse.ui.IWorkbenchWindow window)
Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
Overrides:
init in class org.eclipse.hyades.trace.ui.actions.AbstractProfileActionDelegate
See Also:
IWorkbenchWindowActionDelegate.init(IWorkbenchWindow)

init

public void init(org.eclipse.ui.IViewPart view)
Specified by:
init in interface org.eclipse.ui.IViewActionDelegate
Overrides:
init in class org.eclipse.hyades.trace.ui.actions.AbstractProfileActionDelegate
See Also:
IViewActionDelegate.init(IViewPart)

pageActivated

public void pageActivated(org.eclipse.ui.IWorkbenchPage page)
Specified by:
pageActivated in interface org.eclipse.ui.IPageListener
See Also:
IPageListener.pageActivated(IWorkbenchPage)

pageClosed

public void pageClosed(org.eclipse.ui.IWorkbenchPage page)
Specified by:
pageClosed in interface org.eclipse.ui.IPageListener
See Also:
IPageListener.pageClosed(IWorkbenchPage)

pageOpened

public void pageOpened(org.eclipse.ui.IWorkbenchPage page)
Specified by:
pageOpened in interface org.eclipse.ui.IPageListener
See Also:
IPageListener.pageOpened(IWorkbenchPage)

TPTP 4.5.0 Platform Project
Internal API Specification