net.sf.tm.plugin.actions
Class AbstractBackgroundAction

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended bynet.sf.tm.plugin.actions.AbstractAction
          extended bynet.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

Field Summary
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, CHECKED, DESCRIPTION, ENABLED, IMAGE, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
AbstractBackgroundAction()
           
 
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 net.sf.tm.plugin.actions.AbstractAction
getLocalizedString, getLocalizedString, getLocalizedString
 
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
 

Constructor Detail

AbstractBackgroundAction

public AbstractBackgroundAction()
Method Detail

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.