com.ibm.etools.systems.core.ui.actions
Class SystemRefreshAction
java.lang.Object
Action
com.ibm.etools.systems.core.ui.actions.SystemBaseAction
com.ibm.etools.systems.core.ui.actions.SystemRefreshAction
- All Implemented Interfaces:
- ISystemAction
- public class SystemRefreshAction
- extends SystemBaseAction
The action allows users to refresh the selected node in the Remote Systems Explorer tree view
- See Also:
- Serialized Form
Method Summary |
void |
run()
This is the method called when the user selects this action.
|
boolean |
updateSelection(IStructuredSelection selection)
First opportunity to decide if the action should be enabled or not based on the
current selection. |
Methods inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction |
allowOnMultipleSelection, checkObjectType, getAdapter, getContextMenuGroup, getCurrentTreeView, getDescription, getFirstSelection, getHelpContextId, getLabel, getNextSelection, getRemoteAdapter, getSelection, getSelectionProvider, getShell, getShell, getString, getStringOrNull, getSystemConnection, getToolTip, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setSystemConnection, setTracing, setTracing, setViewer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyright
public static final String copyright
- See Also:
- Constant Field Values
SystemRefreshAction
public SystemRefreshAction(Shell parent)
- Constructor
updateSelection
public boolean updateSelection(IStructuredSelection selection)
- Description copied from class:
SystemBaseAction
- First opportunity to decide if the action should be enabled or not based on the
current selection. Called by default implementation of selectionChanged, which
converts the ISelection to an IStructuredSelection, which is all we support. The
return result is used to enable or disable this action.
The default implementation of this method:
- Returns false if calling checkObjectType on any object in the selection list returns false.
- Returns true otherwise.
If desired, override this method for a different algorithm to decide enablement.
- Overrides:
updateSelection
in class SystemBaseAction
- See Also:
SystemBaseAction.updateSelection(IStructuredSelection)
run
public void run()
- Description copied from class:
SystemBaseAction
- This is the method called when the user selects this action.
Child classes need to override this. If you need the parent shell,
call getShell. If you need to know the current selection, call
getSelection(), or getFirstSelection() followed by getNextSelection()
until null is returned.
- Overrides:
run
in class SystemBaseAction
- See Also:
Action#run()
Copyright © 2005 IBM Corp. All Rights Reserved.
Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.