org.eclipse.net4j.util.ui.container
Class ElementWizardAction

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
                  extended by org.eclipse.net4j.util.ui.actions.LongRunningAction
                      extended by org.eclipse.net4j.util.ui.container.ElementWizardAction
All Implemented Interfaces:
IAction

public class ElementWizardAction
extends LongRunningAction

Since:
3.2

Field Summary
 
Fields inherited from class org.eclipse.net4j.util.ui.actions.SafeAction
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
ElementWizardAction(Shell shell, String title, String toolTip, ImageDescriptor image, String productGroup)
           
ElementWizardAction(Shell shell, String title, String toolTip, ImageDescriptor image, String productGroup, IManagedContainer container)
           
ElementWizardAction(Shell shell, String title, String toolTip, ImageDescriptor image, String productGroup, IManagedContainer container, String defaultFactoryType)
           
 
Method Summary
protected  void doRun(IProgressMonitor progressMonitor)
           
 String getDefaultDescription(String factoryType)
          Can be overridden by subclasses.
 String getDefaultFactoryType()
           
protected  void preRun()
           
 
Methods inherited from class org.eclipse.net4j.util.ui.actions.LongRunningAction
cancel, checkCancelation, getBundleID, getDisplay, getPage, getShell, getTotalWork, getWorkbenchWindow, safeRun, setPage, setTotalWork
 
Methods inherited from class org.eclipse.net4j.util.ui.actions.SafeAction
run
 
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
 

Constructor Detail

ElementWizardAction

public ElementWizardAction(Shell shell,
                           String title,
                           String toolTip,
                           ImageDescriptor image,
                           String productGroup)

ElementWizardAction

public ElementWizardAction(Shell shell,
                           String title,
                           String toolTip,
                           ImageDescriptor image,
                           String productGroup,
                           IManagedContainer container)

ElementWizardAction

public ElementWizardAction(Shell shell,
                           String title,
                           String toolTip,
                           ImageDescriptor image,
                           String productGroup,
                           IManagedContainer container,
                           String defaultFactoryType)
Method Detail

getDefaultFactoryType

public String getDefaultFactoryType()

getDefaultDescription

public String getDefaultDescription(String factoryType)
Can be overridden by subclasses.


preRun

protected void preRun()
               throws Exception
Overrides:
preRun in class LongRunningAction
Throws:
Exception

doRun

protected void doRun(IProgressMonitor progressMonitor)
              throws Exception
Specified by:
doRun in class LongRunningAction
Throws:
Exception


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