Remote Systems
v6.4.1

com.ibm.etools.systems.files.importexport.files
Class RemoteFileExportActionDelegate

java.lang.Object
  extended bycom.ibm.etools.systems.files.importexport.files.RemoteFileImportExportActionDelegate
      extended bycom.ibm.etools.systems.files.importexport.files.RemoteFileExportActionDelegate

public class RemoteFileExportActionDelegate
extends com.ibm.etools.systems.files.importexport.files.RemoteFileImportExportActionDelegate

This class is a remote file export action.


Field Summary
protected  IStructuredSelection fSelection
           
 
Constructor Summary
RemoteFileExportActionDelegate()
           
 
Method Summary
protected  void addToStatus(MultiStatus multiStatus, String defaultMessage, CoreException ex)
           
protected  IFile getDescriptionFile(IStructuredSelection selection)
          Returns the description file for the first description file in the selection.
protected  IFile[] getDescriptionFiles(IStructuredSelection selection)
          Returns a description file for each description file in the selection.
protected  IStructuredSelection getSelection()
          Returns the selection.
protected  Shell getShell()
          Returns the active shell.
protected  IWorkbench getWorkbench()
          Returns the workbench.
protected  RemoteFileExportData readExportData(IFile description, MultiStatus readStatus)
          Reads the file export data from a file.
 void run(IAction action)
           
 void selectionChanged(IAction action, ISelection selection)
          Sets the selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fSelection

protected IStructuredSelection fSelection
Constructor Detail

RemoteFileExportActionDelegate

public RemoteFileExportActionDelegate()
Method Detail

run

public void run(IAction action)
See Also:
IActionDelegate

readExportData

protected RemoteFileExportData readExportData(IFile description,
                                              MultiStatus readStatus)
Reads the file export data from a file.


addToStatus

protected void addToStatus(MultiStatus multiStatus,
                           String defaultMessage,
                           CoreException ex)

selectionChanged

public void selectionChanged(IAction action,
                             ISelection selection)
Sets the selection. The selection is only set if given a structured selection, otherwise it is set to an empty structured selection.

See Also:
IActionDelegate

getDescriptionFile

protected IFile getDescriptionFile(IStructuredSelection selection)
Returns the description file for the first description file in the selection. Use this method if this action allows only a single file selection.

Returns:
the single description file.

getDescriptionFiles

protected IFile[] getDescriptionFiles(IStructuredSelection selection)
Returns a description file for each description file in the selection. Use this method if this action allows multiple selection.

Returns:
an array of description files.

getWorkbench

protected IWorkbench getWorkbench()
Returns the workbench.

Returns:
the workbench.

getShell

protected Shell getShell()
Returns the active shell.

Returns:
the active shell.

getSelection

protected IStructuredSelection getSelection()
Returns the selection.

Returns:
the selection.

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.