Remote Systems
v6.4.1

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

java.lang.Object
  extended byWizard
      extended bycom.ibm.etools.systems.core.ui.wizards.AbstractSystemWizard
          extended bycom.ibm.etools.systems.files.importexport.files.RemoteImportWizard
All Implemented Interfaces:
ISystemPromptDialog, ISystemWizard

public class RemoteImportWizard
extends AbstractSystemWizard

Standard workbench wizard for importing resources from the local file system into the workspace.

This class may be instantiated and used without further configuration; this class is not intended to be subclassed.

Example:

 IWizard wizard = new RemoteImportWizard();
 wizard.init(workbench, selection);
 WizardDialog dialog = new WizardDialog(shell, wizard);
 dialog.open();
 
During the call to open, the wizard dialog is presented to the user. When the user hits Finish, the user-selected files are imported into the workspace, the dialog closes, and the call to open returns.

See Also:
Serialized Form

Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.systems.core.ui.wizards.AbstractSystemWizard
cancelled, copyright, finishPressed, helpId, input, minPageHeight, minPageWidth, output, owningDialog, pageTitle, viewer
 
Constructor Summary
RemoteImportWizard()
          Creates a wizard for importing resources into the workspace from the file system.
 
Method Summary
 void addPages()
          Creates the wizard pages.
 RemoteFileImportData getImportData()
           
 boolean getInitializeFromImportData()
           
 void init(IWorkbench workbench, IStructuredSelection currentSelection)
          Required by INewWizard interface.
 boolean performFinish()
          Called when finish pressed.
protected  void setInitializeFromImportData(boolean init)
           
 
Methods inherited from class com.ibm.etools.systems.core.ui.wizards.AbstractSystemWizard
addPage, getCurrentTreeView, getHelpContextId, getInputObject, getMinimumPageHeight, getMinimumPageWidth, getOutputObject, getSystemWizardDialog, getViewer, getWizardPageTitle, performCancel, publicConvertHeightInCharsToPixels, publicConvertWidthInCharsToPixels, setBusyCursor, setHelp, setInputObject, setMinimumPageSize, setOutputObject, setPageError, setSystemWizardDialog, setViewer, setWasCancelled, setWizardImage, setWizardPageTitle, setWizardTitle, updateSize, wasCancelled
 
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

RemoteImportWizard

public RemoteImportWizard()
Creates a wizard for importing resources into the workspace from the file system.

Method Detail

addPages

public void addPages()
Description copied from class: AbstractSystemWizard
Creates the wizard pages. This method is an override from the parent Wizard class, but is made abstract here to ensure child classes override it.

Specified by:
addPages in class AbstractSystemWizard

init

public void init(IWorkbench workbench,
                 IStructuredSelection currentSelection)
Description copied from class: AbstractSystemWizard
Required by INewWizard interface. It is called by the framework for wizards that are launched file the File->New interface. Otherwise we don't use it. If you need it, the selection is stored in protected variable "selection".

Overrides:
init in class AbstractSystemWizard

setInitializeFromImportData

protected void setInitializeFromImportData(boolean init)

getInitializeFromImportData

public boolean getInitializeFromImportData()

getImportData

public RemoteFileImportData getImportData()

performFinish

public boolean performFinish()
Description copied from class: AbstractSystemWizard
Called when finish pressed.

Return true if no errors, false to cancel the finish operation.

Typically, you walk through each wizard page calling performFinish on it, and only return true if they all return true. If one of the pages returns false, you should call setPageError(IWizardPage), which shows a message to the user about an error pending on another page, if the given page is not the current page.

Specified by:
performFinish in class AbstractSystemWizard

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.