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 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 interface org.eclipse.ui.IWindowListener
    • windowDeactivated

      public void windowDeactivated​(org.eclipse.ui.IWorkbenchWindow window)
      Specified by:
      windowDeactivated in interface org.eclipse.ui.IWindowListener
    • windowClosed

      public void windowClosed​(org.eclipse.ui.IWorkbenchWindow window)
      Specified by:
      windowClosed in interface org.eclipse.ui.IWindowListener
    • windowOpened

      public void windowOpened​(org.eclipse.ui.IWorkbenchWindow window)
      Specified by:
      windowOpened in interface org.eclipse.ui.IWindowListener