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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
launch()
Launches the run() method as soon as the workbench is ready.void
windowActivated
(org.eclipse.ui.IWorkbenchWindow window) void
windowClosed
(org.eclipse.ui.IWorkbenchWindow window) void
windowDeactivated
(org.eclipse.ui.IWorkbenchWindow window) void
windowOpened
(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:
windowActivated
in interfaceorg.eclipse.ui.IWindowListener
-
windowDeactivated
public void windowDeactivated(org.eclipse.ui.IWorkbenchWindow window) - Specified by:
windowDeactivated
in interfaceorg.eclipse.ui.IWindowListener
-
windowClosed
public void windowClosed(org.eclipse.ui.IWorkbenchWindow window) - Specified by:
windowClosed
in interfaceorg.eclipse.ui.IWindowListener
-
windowOpened
public void windowOpened(org.eclipse.ui.IWorkbenchWindow window) - Specified by:
windowOpened
in interfaceorg.eclipse.ui.IWindowListener
-