Remote Systems
v6.4.1

com.ibm.etools.systems.files.importexport.jar
Class RemoteJarExportWizardMainPage

java.lang.Object
  extended byWizardExportResourcesPage
      extended bycom.ibm.etools.systems.files.importexport.jar.RemoteJarExportWizardMainPage
All Implemented Interfaces:
IRemoteJarExportWizardPage

public class RemoteJarExportWizardMainPage
extends WizardExportResourcesPage
implements IRemoteJarExportWizardPage

Page 1 of the remote jar export wizard.

See Also:
Serialized Form

Constructor Summary
RemoteJarExportWizardMainPage(RemoteJarExportData jarPackage, IStructuredSelection selection)
          Create an instance of this class
 
Method Summary
 void createControl(Composite parent)
           
protected  void createDestinationGroup(Composite parent)
          Returns a boolean indicating whether the passed File handle is is valid and available for use.
protected  void createExportTypeGroup(Composite parent)
          Creates the export type controls.
protected  IFile createFileHandle(IPath filePath)
          Creates a file resource handle for the file with the given workspace path.
protected  void createInputGroup(Composite parent)
          Creates the checkbox tree and list for selecting resources.
protected  void createOptionsGroup(Composite parent)
          Create the export options specification widgets.
protected  IResource findResource(IPath path)
          Returns the resource for the specified path.
 void finish()
          Tells the page that the user has pressed finish.
protected  String getDestinationLabel()
          Answer the string to display in self as the destination type
protected  String getDestinationValue()
          Answer the contents of the destination specification widget.
protected  String getOutputSuffix()
          Answer the suffix that files exported from this wizard must have.
protected  IPath getResourcePath()
           
protected  Iterator getSelectedResourcesIterator()
          Returns an iterator over this page's collection of currently-specified elements to be exported.
protected  void giveFocusToDestination()
          Set the current input focus to self's destination entry field
protected  void handleDescriptionFileBrowseButtonPressed()
          Open an appropriate destination browser so that the user can specify a source to import from
protected  void handleDestinationBrowseButtonPressed()
          Open an appropriate destination browser so that the user can specify a source to import from
 void handleEvent(Event e)
           
protected  void initializeJarPackage()
          Initializes the JAR package from last used wizard page values.
protected  void internalSaveWidgetValues()
          Hook method for subclasses to persist their settings.
 boolean isPageComplete()
           
protected  void restoreWidgetValues()
          Hook method for restoring widget values to the values that they held last time this wizard was used to completion.
 void saveWidgetValues()
          Persists resource specification control setting that are to be restored in the next instance of this page.
 void setDestinationValue(String value)
          Sets the contents of the destination specification widget.
 void setPreviousPage(IWizardPage page)
           
protected  void setupBasedOnInitialSelections()
           
protected  void update()
           
protected  void updateModel()
          Stores the widget values in the JAR package.
protected  void updatePageCompletion()
           
protected  void updateWidgetEnablements()
          Updates the enablements of this page's controls.
protected  boolean validateDestinationGroup()
           
protected  boolean validateOptionsGroup()
           
protected  boolean validateSourceGroup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteJarExportWizardMainPage

public RemoteJarExportWizardMainPage(RemoteJarExportData jarPackage,
                                     IStructuredSelection selection)
Create an instance of this class

Method Detail

createControl

public void createControl(Composite parent)

createOptionsGroup

protected void createOptionsGroup(Composite parent)
Create the export options specification widgets.

Parameters:
parent - org.eclipse.swt.widgets.Composite

getDestinationValue

protected String getDestinationValue()
Answer the contents of the destination specification widget. If this value does not have the required suffix then add it first.

Returns:
java.lang.String

setDestinationValue

public void setDestinationValue(String value)
Sets the contents of the destination specification widget.

Parameters:
value - the value to set.

getDestinationLabel

protected String getDestinationLabel()
Answer the string to display in self as the destination type

Returns:
java.lang.String

getOutputSuffix

protected String getOutputSuffix()
Answer the suffix that files exported from this wizard must have. If this suffix is a file extension (which is typically the case) then it must include the leading period character.

Returns:
java.lang.String

getSelectedResourcesIterator

protected Iterator getSelectedResourcesIterator()
Returns an iterator over this page's collection of currently-specified elements to be exported. This is the primary element selection facility accessor for subclasses.

Returns:
an iterator over the collection of elements currently selected for export

saveWidgetValues

public final void saveWidgetValues()
Persists resource specification control setting that are to be restored in the next instance of this page. Subclasses wishing to persist settings for their controls should extend the hook method internalSaveWidgetValues.


internalSaveWidgetValues

protected void internalSaveWidgetValues()
Hook method for subclasses to persist their settings.


restoreWidgetValues

protected void restoreWidgetValues()
Hook method for restoring widget values to the values that they held last time this wizard was used to completion.


initializeJarPackage

protected void initializeJarPackage()
Initializes the JAR package from last used wizard page values.


updateModel

protected void updateModel()
Stores the widget values in the JAR package.


createDestinationGroup

protected void createDestinationGroup(Composite parent)
Returns a boolean indicating whether the passed File handle is is valid and available for use.

Returns:
boolean

handleDescriptionFileBrowseButtonPressed

protected void handleDescriptionFileBrowseButtonPressed()
Open an appropriate destination browser so that the user can specify a source to import from


handleDestinationBrowseButtonPressed

protected void handleDestinationBrowseButtonPressed()
Open an appropriate destination browser so that the user can specify a source to import from


findResource

protected IResource findResource(IPath path)
Returns the resource for the specified path.

Parameters:
path - the path for which the resource should be returned
Returns:
the resource specified by the path or null

createInputGroup

protected void createInputGroup(Composite parent)
Creates the checkbox tree and list for selecting resources.

Parameters:
parent - the parent control

createExportTypeGroup

protected void createExportTypeGroup(Composite parent)
Creates the export type controls.

Parameters:
parent - the parent control

updateWidgetEnablements

protected void updateWidgetEnablements()
Updates the enablements of this page's controls. Subclasses may extend.


isPageComplete

public boolean isPageComplete()

handleEvent

public void handleEvent(Event e)

update

protected void update()

updatePageCompletion

protected void updatePageCompletion()

validateDestinationGroup

protected boolean validateDestinationGroup()

validateOptionsGroup

protected boolean validateOptionsGroup()

validateSourceGroup

protected boolean validateSourceGroup()

getResourcePath

protected IPath getResourcePath()

createFileHandle

protected IFile createFileHandle(IPath filePath)
Creates a file resource handle for the file with the given workspace path. This method does not create the file resource; this is the responsibility of createFile.

Parameters:
filePath - the path of the file resource to create a handle for
Returns:
the new file resource handle

giveFocusToDestination

protected void giveFocusToDestination()
Set the current input focus to self's destination entry field


setupBasedOnInitialSelections

protected void setupBasedOnInitialSelections()

finish

public void finish()
Description copied from interface: IRemoteJarExportWizardPage
Tells the page that the user has pressed finish.

Specified by:
finish in interface IRemoteJarExportWizardPage

setPreviousPage

public void setPreviousPage(IWizardPage page)

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.