RSE
Release 1.0

org.eclipse.rse.files.ui.actions
Class SystemExtractToAction

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.files.ui.actions.SystemExtractAction
                      extended byorg.eclipse.rse.files.ui.actions.SystemExtractToAction
All Implemented Interfaces:
IAction, ISelectionChangedListener, ISystemAction, IValidatorRemoteSelection
Direct Known Subclasses:
SystemCombineAction, SystemConvertAction

public class SystemExtractToAction
extends SystemExtractAction
implements IValidatorRemoteSelection


Nested Class Summary
 
Nested classes inherited from class org.eclipse.rse.files.ui.actions.SystemExtractAction
SystemExtractAction.ExtractRunnable
 
Field Summary
protected  int currentlyProcessingSelection
           
protected static String[] systemTypes
           
protected  SystemMessage targetDescendsFromSrcMsg
           
 
Fields inherited from class org.eclipse.rse.files.ui.actions.SystemExtractAction
_label, _parent, _selected
 
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
SystemExtractToAction(Shell parent)
           
SystemExtractToAction(Shell parent, String label, String tooltip)
           
 
Method Summary
protected  boolean destinationInSource(IRemoteFile destination)
           
protected  String getActionLabelForSingleSelection()
          Extending classes must override this method, otherwise when there is one selection, the action label will be "Extract to xxxx", where xxxx is a dynamically created directory name.
 SystemMessage isValid(IHost selectedConnection, Object[] selectedObjects, ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
          The user has selected one or more remote objects.
 void run()
          This is the method called when the user selects this action.
 
Methods inherited from class org.eclipse.rse.files.ui.actions.SystemExtractAction
getExtractedName, getRunnableContext, updateSelection
 
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, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setHost, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setTracing, setTracing, setViewer
 
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.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
 

Field Detail

systemTypes

protected static final String[] systemTypes

targetDescendsFromSrcMsg

protected SystemMessage targetDescendsFromSrcMsg

currentlyProcessingSelection

protected int currentlyProcessingSelection
Constructor Detail

SystemExtractToAction

public SystemExtractToAction(Shell parent)

SystemExtractToAction

public SystemExtractToAction(Shell parent,
                             String label,
                             String tooltip)
Method Detail

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.

Specified by:
run in interface IAction
Overrides:
run in class SystemExtractAction

destinationInSource

protected boolean destinationInSource(IRemoteFile destination)

getActionLabelForSingleSelection

protected String getActionLabelForSingleSelection()
Description copied from class: SystemExtractAction
Extending classes must override this method, otherwise when there is one selection, the action label will be "Extract to xxxx", where xxxx is a dynamically created directory name. Note: you can also eliminate this behaviour by overriding the updateSelection method.

Overrides:
getActionLabelForSingleSelection in class SystemExtractAction
Returns:
Set this to return the normal action label if you don't want the name dynamically created.

isValid

public SystemMessage isValid(IHost selectedConnection,
                             Object[] selectedObjects,
                             ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
Description copied from interface: IValidatorRemoteSelection
The user has selected one or more remote objects. Return null if OK is to be enabled, or a SystemMessage if it is not to be enabled. The message will be displayed on the message line.

Specified by:
isValid in interface IValidatorRemoteSelection

RSE
Release 1.0

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