Class LongRunningAction
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
org.eclipse.net4j.util.ui.actions.LongRunningAction
- All Implemented Interfaces:
IAction
- Direct Known Subclasses:
ElementWizardAction
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.ui.actions.SafeAction
INTERACTIVEFields 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
ConstructorsConstructorDescriptionLongRunningAction(String text) LongRunningAction(String text, int style) LongRunningAction(String text, String toolTipText) LongRunningAction(String text, String toolTipText, ImageDescriptor image) LongRunningAction(String text, ImageDescriptor image) LongRunningAction(IWorkbenchPage page, String text) LongRunningAction(IWorkbenchPage page, String text, int style) LongRunningAction(IWorkbenchPage page, String text, String toolTipText) LongRunningAction(IWorkbenchPage page, String text, String toolTipText, ImageDescriptor image) LongRunningAction(IWorkbenchPage page, String text, ImageDescriptor image) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcancel()protected final voidcheckCancelation(IProgressMonitor monitor) protected abstract voiddoRun(IProgressMonitor progressMonitor) protected Stringprotected Stringprotected StringgetPage()getShell()protected final intDeprecated.Not supported anymore.protected voidpreRun()protected final voidsafeRun()voidsetPage(IWorkbenchPage page) protected final voidsetTotalWork(int totalWork) Deprecated.Not supported anymore.Methods inherited from class org.eclipse.net4j.util.ui.actions.SafeAction
runMethods 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, setToolTipTextMethods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
LongRunningAction
-
LongRunningAction
public LongRunningAction(IWorkbenchPage page, String text, String toolTipText, ImageDescriptor image) -
LongRunningAction
-
LongRunningAction
-
LongRunningAction
-
LongRunningAction
-
LongRunningAction
public LongRunningAction() -
LongRunningAction
-
LongRunningAction
-
LongRunningAction
-
LongRunningAction
-
LongRunningAction
-
-
Method Details
-
getPage
-
setPage
-
getWorkbenchWindow
-
getDisplay
- Since:
- 2.0
-
getShell
- Overrides:
getShellin classSafeAction
-
getTotalWork
Deprecated.Not supported anymore. -
setTotalWork
Deprecated.Not supported anymore. -
cancel
protected final void cancel() -
safeRun
- Specified by:
safeRunin classSafeAction- Throws:
Exception
-
preRun
- Throws:
Exception
-
getBundleID
-
getErrorTitle
- Since:
- 3.12
-
getErrorMessage
- Since:
- 3.12
-
doRun
- Throws:
Exception- Since:
- 2.0
-
checkCancelation
-