Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.actions
Class SystemRefreshAction

java.lang.Object
  extended byAction
      extended bycom.ibm.etools.systems.core.ui.actions.SystemBaseAction
          extended bycom.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

Field Summary
static String copyright
           
 
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor
 
Constructor Summary
SystemRefreshAction(Shell parent)
          Constructor
 
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
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemRefreshAction

public SystemRefreshAction(Shell parent)
Constructor

Method Detail

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:

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()

Remote Systems
v6.4.1

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.