org.eclipse.net4j.util.ui.actions
Class SafeAction

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.action.AbstractAction
          extended by org.eclipse.jface.action.Action
              extended by org.eclipse.net4j.util.ui.actions.SafeAction
All Implemented Interfaces:
IAction
Direct Known Subclasses:
LongRunningAction, MasterDetailsView.RefreshAction, SashLayoutAction

public abstract class SafeAction
extends Action


Field Summary
static String INTERACTIVE
           
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
SafeAction()
           
SafeAction(String text)
           
SafeAction(String text, ImageDescriptor image)
           
SafeAction(String text, int style)
           
SafeAction(String text, String toolTipText)
           
SafeAction(String text, String toolTipText, ImageDescriptor image)
           
 
Method Summary
 void run()
           
protected abstract  void safeRun()
           
 
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.action.IAction
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

INTERACTIVE

public static final String INTERACTIVE
Constructor Detail

SafeAction

public SafeAction()

SafeAction

public SafeAction(String text,
                  String toolTipText,
                  ImageDescriptor image)

SafeAction

public SafeAction(String text,
                  String toolTipText)

SafeAction

public SafeAction(String text,
                  ImageDescriptor image)

SafeAction

public SafeAction(String text,
                  int style)

SafeAction

public SafeAction(String text)
Method Detail

run

public final void run()
Specified by:
run in interface IAction
Overrides:
run in class Action

safeRun

protected abstract void safeRun()
                         throws Exception
Throws:
Exception


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.