org.eclipse.rse.ui.actions
Class SystemNewProfileAction
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.rse.ui.actions.SystemBaseAction
org.eclipse.rse.ui.actions.SystemBaseDialogAction
org.eclipse.rse.ui.actions.SystemBaseWizardAction
org.eclipse.rse.ui.actions.SystemNewProfileAction
- All Implemented Interfaces:
- IAction, ISelectionChangedListener, ISystemAction, ISystemDialogAction, ISystemWizardAction
- public class SystemNewProfileAction
- extends SystemBaseWizardAction
The action that displays the New Profile wizard
| 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 |
SystemNewProfileAction(Shell parent)
Constructor for SystemNewProfileAction for "New -> Profile..." |
SystemNewProfileAction(Shell parent,
boolean cascading)
Constructor for SystemNewProfileAction where you can choose between "New profile..." and "New -> Profile" |
|
Method Summary |
protected IWizard |
createWizard()
The default processing for the run method calls createDialog, which
we override in this class. |
boolean |
isEnabled()
Disables this action if offline mode, otherwise delegates to the super class. |
protected void |
postProcessWizard(IWizard wizard)
Typically, the wizard's performFinish method does the work required by
a successful finish of the wizard. |
void |
refreshEnablement()
Refresh the enabled state |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseAction |
allowOnMultipleSelection, checkObjectType, getAdapter, getContextMenuGroup, getCurrentTreeView, getFirstSelection, getHelpContextId, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getSystemConnection, getViewer, isDummy, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setHost, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setTracing, setTracing, setViewer, updateSelection |
| 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, 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 |
| Methods inherited from interface org.eclipse.rse.ui.actions.ISystemAction |
allowOnMultipleSelection, getContextMenuGroup, getHelpContextId, getSelection, getShell, getViewer, isDummy, isSelectionSensitive, setContextMenuGroup, setHelp, setInputs, setSelection, setSelectionSensitive, setShell, setViewer |
| Methods inherited from interface org.eclipse.jface.action.IAction |
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, removePropertyChangeListener, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
SystemNewProfileAction
public SystemNewProfileAction(Shell parent)
- Constructor for SystemNewProfileAction for "New -> Profile..."
- Parameters:
parent - the parent shell in which this action executes
SystemNewProfileAction
public SystemNewProfileAction(Shell parent,
boolean cascading)
- Constructor for SystemNewProfileAction where you can choose between "New profile..." and "New -> Profile"
- Parameters:
parent - the parent shell in which this action executescascading - if true then use the "New -> Profile" style, else use the "New profile..." style.
refreshEnablement
public void refreshEnablement()
- Refresh the enabled state
isEnabled
public boolean isEnabled()
- Description copied from class:
SystemBaseAction
- Disables this action if offline mode, otherwise delegates to the super class.
- Specified by:
isEnabled in interface IAction- Overrides:
isEnabled in class SystemBaseAction
- See Also:
IAction.isEnabled()
createWizard
protected IWizard createWizard()
- Description copied from class:
SystemBaseWizardAction
- The default processing for the run method calls createDialog, which
we override in this class. The implementation of createDialog calls
this method that you must override, to create the wizard. The result
goes into a WizardDialog which is opened and hence displayed to the
user.
- Specified by:
createWizard in class SystemBaseWizardAction
- Returns:
- a new Wizard object for creating a profile.
postProcessWizard
protected void postProcessWizard(IWizard wizard)
- Typically, the wizard's performFinish method does the work required by
a successful finish of the wizard. However, often we also want to be
able to extract user-entered data from the wizard, by calling getters
in this action. To enable this, override this method to populate your
output instance variables from the completed wizard, which is passed
as a parameter. This is only called after successful completion of the
wizard.
- Overrides:
postProcessWizard in class SystemBaseWizardAction
- Parameters:
wizard - the wizard that was just completed
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.