Package org.eclipse.ease.ui.tools
Class AbstractWorkbenchRunnable
java.lang.Object
org.eclipse.ease.ui.tools.AbstractWorkbenchRunnable
- All Implemented Interfaces:
Runnable,org.eclipse.ui.IWindowListener
public abstract class AbstractWorkbenchRunnable extends Object implements Runnable, org.eclipse.ui.IWindowListener
Helper class to run a job when the workbench window is started. If the workbench is not ready yet, execution will be delayed until the workbench is ready.
-
Constructor Summary
Constructors Constructor Description AbstractWorkbenchRunnable() -
Method Summary
Modifier and Type Method Description voidlaunch()Launches the run() method as soon as the workbench is ready.voidwindowActivated(org.eclipse.ui.IWorkbenchWindow window)voidwindowClosed(org.eclipse.ui.IWorkbenchWindow window)voidwindowDeactivated(org.eclipse.ui.IWorkbenchWindow window)voidwindowOpened(org.eclipse.ui.IWorkbenchWindow window)
-
Constructor Details
-
AbstractWorkbenchRunnable
public AbstractWorkbenchRunnable()
-
-
Method Details
-
launch
public void launch()Launches the run() method as soon as the workbench is ready. Execution will always be moved to the UI thread and is done asynchronously. This call simply registers the execution task and returns immediately. -
windowActivated
public void windowActivated(org.eclipse.ui.IWorkbenchWindow window)- Specified by:
windowActivatedin interfaceorg.eclipse.ui.IWindowListener
-
windowDeactivated
public void windowDeactivated(org.eclipse.ui.IWorkbenchWindow window)- Specified by:
windowDeactivatedin interfaceorg.eclipse.ui.IWindowListener
-
windowClosed
public void windowClosed(org.eclipse.ui.IWorkbenchWindow window)- Specified by:
windowClosedin interfaceorg.eclipse.ui.IWindowListener
-
windowOpened
public void windowOpened(org.eclipse.ui.IWorkbenchWindow window)- Specified by:
windowOpenedin interfaceorg.eclipse.ui.IWindowListener
-