RSE
Release 1.0

org.eclipse.rse.eclipse.filesystem.ui.actions
Class CreateRemoteProjectActionDelegate

java.lang.Object
  extended byorg.eclipse.rse.eclipse.filesystem.ui.actions.CreateRemoteProjectActionDelegate
All Implemented Interfaces:
IActionDelegate

public class CreateRemoteProjectActionDelegate
extends Object
implements IActionDelegate


Field Summary
protected  IStructuredSelection fSelection
           
 
Constructor Summary
CreateRemoteProjectActionDelegate()
           
 
Method Summary
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  IRemoteFile getRemoteFile(IStructuredSelection selection)
          Returns the remote file in the selection.
protected  IRemoteFile[] getRemoteFiles(IStructuredSelection selection)
          Returns the remote files in the selection.
protected  IStructuredSelection getSelection()
          Returns the selection.
protected  Shell getShell()
          Returns the active shell.
protected  IWorkbench getWorkbench()
          Returns the workbench.
 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

CreateRemoteProjectActionDelegate

public CreateRemoteProjectActionDelegate()
Method Detail

run

public void run(IAction action)
Specified by:
run in interface IActionDelegate
See Also:
IActionDelegate.run(org.eclipse.jface.action.IAction)

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.

Specified by:
selectionChanged in interface IActionDelegate
See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)

getRemoteFile

protected IRemoteFile getRemoteFile(IStructuredSelection selection)
Returns the remote file in the selection. Use this method if this action allows only a single remote file selection.

Returns:
the single remote file.

getRemoteFiles

protected IRemoteFile[] getRemoteFiles(IStructuredSelection selection)
Returns the remote files in the selection. Use this method if this action allows multiple remote file selection.

Returns:
an array of remote files.

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.

RSE
Release 1.0

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