net.sf.tm.plugin.actions
Class AbstractBusyAction

java.lang.Object
  extended byorg.eclipse.jface.action.Action
      extended bynet.sf.tm.plugin.actions.AbstractAction
          extended bynet.sf.tm.plugin.actions.AbstractBusyAction
All Implemented Interfaces:
IAction
Direct Known Subclasses:
RefreshAction

public abstract class AbstractBusyAction
extends AbstractAction

Abstract base class for all actions which must provide a busy indicator during there run operation.

Version:
$Id: AbstractBusyAction.java,v 1.4 2004/02/10 20:11:25 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
AbstractBusyAction()
           
 
Method Summary
 void run()
          Don't overwrite the run method in the actual action implementation.
protected abstract  void runWithBusyIndicator()
          In the actual action implementation all stuff which should be excecuted with a busy indicator must be placed in this method.
 
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, 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

AbstractBusyAction

public AbstractBusyAction()
Method Detail

run

public void run()
Don't overwrite the run method in the actual action implementation. The run method will do a call to the runWithBusyIndicator() method using a BusyIndicator.

See Also:
Action.run()

runWithBusyIndicator

protected abstract void runWithBusyIndicator()
In the actual action implementation all stuff which should be excecuted with a busy indicator must be placed in this method.



Copyright © 2003-2004 Andreas Pataki. All Rights Reserved.