Remote Systems
v6.4.1

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

java.lang.Object
  extended byAction
      extended bycom.ibm.etools.systems.core.ui.actions.SystemBaseAction
          extended bycom.ibm.etools.systems.core.ui.actions.SystemWorkOfflineAction
All Implemented Interfaces:
ISystemAction

public class SystemWorkOfflineAction
extends SystemBaseAction

Action for switching RSE Connections offline

Since:
Artemis 6.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.etools.systems.core.ui.actions.SystemBaseAction
allowOnMultipleSelection, arrowCursor, copyright, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor
 
Constructor Summary
SystemWorkOfflineAction(Shell shell)
          Constructor
 
Method Summary
 boolean checkObjectType(Object obj)
          Override of parent.
 void run()
          Called when this action is selection from the popup menu.
 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, 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
 

Constructor Detail

SystemWorkOfflineAction

public SystemWorkOfflineAction(Shell shell)
Constructor

Parameters:
shell -
Method Detail

checkObjectType

public boolean checkObjectType(Object obj)
Override of parent. Called when testing if action should be enabled base on current selection. We check the selected object is one of our subsystems, and if we are currently connected.

Overrides:
checkObjectType in class SystemBaseAction

run

public void run()
Called when this action is selection from the popup menu.

Overrides:
run in class SystemBaseAction
See Also:
Action#run()

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

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.