org.eclipse.rse.ui.actions
Class SystemClearPasswordAction
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.SystemClearPasswordAction
- All Implemented Interfaces:
- IAction, ISelectionChangedListener, ISystemAction
- public class SystemClearPasswordAction
- extends SystemBaseAction
This is the action for clearing in-memory userId and password cache
| 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 |
boolean |
checkObjectType(Object obj)
Override of parent.
|
void |
run()
Called when this action is selection from the popup menu. |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseAction |
allowOnMultipleSelection, getAdapter, getContextMenuGroup, getCurrentTreeView, getFirstSelection, getHelpContextId, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getSystemConnection, getViewer, isDummy, isEnabled, 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.jface.action.IAction |
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
SystemClearPasswordAction
public SystemClearPasswordAction(Shell shell)
- Constructor.
- Parameters:
shell - Shell of parent window, used as the parent for the dialog.
Can be null, but be sure to call setParent before the action is used (ie, run).
checkObjectType
public boolean checkObjectType(Object obj)
- Override of parent.
Called when testing if an action should be enabled based on the current selection.
The clear password action can be enabled if the selected object is a subsystem
that is not connected and has a password that is saved.
- Overrides:
checkObjectType in class SystemBaseAction
- Returns:
- true if the clear password action can be enabled.
run
public void run()
- Called when this action is selection from the popup menu.
- Specified by:
run in interface IAction- Overrides:
run in class SystemBaseAction
- See Also:
Action.run()
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.