net.sf.tm.plugin.actions
Class AbstractBackgroundAction
java.lang.Object
org.eclipse.jface.action.Action
net.sf.tm.plugin.actions.AbstractAction
net.sf.tm.plugin.actions.AbstractBackgroundAction
- All Implemented Interfaces:
- IAction
- Direct Known Subclasses:
- ReloadContextAction, StartContextAction, StopContextAction
- public abstract class AbstractBackgroundAction
- extends AbstractAction
Abstract base class for all actions which must provide a busy indicator
during there run operation.
- Version:
- $Id: AbstractBackgroundAction.java,v 1.1 2004/02/10 20:11:48 apataki Exp $
- Author:
- Andreas Pataki
Method Summary |
protected void |
runInBackground(Runnable runnable)
Starts a new Thread named tmplugin with the given Runnable. |
protected void |
runInUIThread(Runnable runnable)
Executes the given Runnable in the UI thread context- |
Methods inherited from class org.eclipse.jface.action.Action |
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, removeAcceleratorText, removePropertyChangeListener, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBackgroundAction
public AbstractBackgroundAction()
runInBackground
protected void runInBackground(Runnable runnable)
- Starts a new Thread named tmplugin with the given Runnable.
- Parameters:
runnable
- Runable implementation with the code to execute
runInUIThread
protected void runInUIThread(Runnable runnable)
- Executes the given Runnable in the UI thread context-
- Parameters:
runnable
- Runable implementation with the code to execute
Copyright © 2003-2004 Andreas Pataki. All Rights Reserved.