RSE
Release 1.0

org.eclipse.rse.ui.actions
Class SystemNewProfileAction

java.lang.Object
  extended byorg.eclipse.core.commands.common.EventManager
      extended byorg.eclipse.jface.action.AbstractAction
          extended byorg.eclipse.jface.action.Action
              extended byorg.eclipse.rse.ui.actions.SystemBaseAction
                  extended byorg.eclipse.rse.ui.actions.SystemBaseDialogAction
                      extended byorg.eclipse.rse.ui.actions.SystemBaseWizardAction
                          extended byorg.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


Field Summary
 
Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseDialogAction
cancelled, dlgHelpId, needsProgressMonitor, needsProgressMonitorSet, processAll, value
 
Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseAction
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor
 
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.SystemBaseWizardAction
createDialog, getDialogValue, getWizardPageTitle, setMinimumPageSize, setWizardImage, setWizardPageTitle, setWizardTitle, wasCancelled
 
Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseDialogAction
getDialogHelpContextId, getNeedsProgressMonitor, getProcessAllSelections, getValue, run, setDialogHelp, setNeedsProgressMonitor, setProcessAllSelections, setValue, wasNeedsProgressMonitorSet
 
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 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.rse.ui.actions.ISystemDialogAction
getValue, setProcessAllSelections, setValue
 
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
 
Methods inherited from interface org.eclipse.jface.viewers.ISelectionChangedListener
selectionChanged
 

Constructor Detail

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 executes
cascading - if true then use the "New -> Profile" style, else use the "New profile..." style.
Method Detail

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

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.