org.eclipse.net4j.util.ui.actions
Class SafeAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.net4j.util.ui.actions.SafeAction
- All Implemented Interfaces:
- IAction
- Direct Known Subclasses:
- LongRunningAction, MasterDetailsView.RefreshAction, SashLayoutAction
public abstract class SafeAction
- extends Action
- Author:
- Eike Stepper
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 |
Method Summary |
void |
run()
The default implementation of this IAction method does
nothing. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INTERACTIVE
public static final String INTERACTIVE
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)
run
public final void run()
- Description copied from class:
org.eclipse.jface.action.Action
- The default implementation of this
IAction
method does
nothing. Subclasses should override this method if they do not need
information from the triggering event, or override
runWithEvent(Event)
if they do.
- Specified by:
run
in interface IAction
- Overrides:
run
in class Action
safeRun
protected abstract void safeRun()
throws Exception
- Throws:
Exception
Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.