Remote Systems
v6.4.1

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

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

public class RemoteJarExportWizardManifestPage
extends WizardPage
implements IRemoteJarExportWizardPage

See Also:
Serialized Form

Constructor Summary
RemoteJarExportWizardManifestPage(RemoteJarExportData jarPackage)
          Create an instance of this class
 
Method Summary
 void createControl(Composite parent)
           
protected  IFile createFileHandle(IPath filePath)
          Creates a file resource handle for the file with the given workspace path.
protected  Label createLabel(Composite parent, String text, boolean bold)
          Creates a new label with a bold font.
protected  void createMainClassGroup(Composite parent)
           
protected  void createManifestFileGroup(Composite parent)
           
protected  void createManifestGroup(Composite parent)
          Create the export options specification widgets.
protected  void createNewManifestFileGroup(Composite parent)
           
protected  SelectionDialog createPackageDialog(Set packageFragments)
          Creates a selection dialog that lists all packages under the given package fragment root.
protected  void createSealingGroup(Composite parent)
          Creates the JAR sealing specification controls.
protected  void createSealJarGroup(Composite sealGroup)
          Creates the JAR sealing specification controls to seal the whole JAR.
protected  void createSealPackagesGroup(Composite sealGroup)
          Creates the JAR sealing specification controls to seal packages.
protected  void createSpacer(Composite parent)
          Creates a horizontal spacer line that fills the width of its container.
protected  ElementTreeSelectionDialog createWorkspaceFileSelectionDialog(String title, String message)
          Creates and returns a dialog to choose an existing workspace file.
protected  IResource findResource(IPath path)
          Returns the resource for the specified path.
 void finish()
          Tells the page that the user has pressed finish.
protected  IPackageFragment[] getPackagesFromDialog(SelectionDialog dialog)
          Converts selection dialog results into an array of IPackageFragments.
protected  IPath getPathFromString(String text)
           
protected  void handleMainClassBrowseButtonPressed()
           
protected  void handleManifestFileBrowseButtonPressed()
           
protected  void handleNewManifestFileBrowseButtonPressed()
          Open an appropriate dialog so that the user can specify a manifest to save
protected  void handleSealPackagesDetailsButtonPressed()
           
protected  void handleUnSealPackagesDetailsButtonPressed()
           
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.
protected  void setEqualButtonSizes()
          Makes the size of all buttons equal.
 void setPreviousPage(IWizardPage page)
           
protected  void setSize(Control control, int width, int height)
          Sets the size of a control.
protected  void updateEnableState()
          Updates the enable state of this page's controls.
protected  void updateModel()
          Stores the widget values in the JAR package.
protected  void updatePageCompletion()
          Determine if the page is complete and update the page appropriately.
protected  void updateSealingInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteJarExportWizardManifestPage

public RemoteJarExportWizardManifestPage(RemoteJarExportData jarPackage)
Create an instance of this class

Method Detail

createControl

public void createControl(Composite parent)

createManifestGroup

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

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

createNewManifestFileGroup

protected void createNewManifestFileGroup(Composite parent)

createManifestFileGroup

protected void createManifestFileGroup(Composite parent)

createSealingGroup

protected void createSealingGroup(Composite parent)
Creates the JAR sealing specification controls.

Parameters:
parent - the parent control

createSealJarGroup

protected void createSealJarGroup(Composite sealGroup)
Creates the JAR sealing specification controls to seal the whole JAR.


createSealPackagesGroup

protected void createSealPackagesGroup(Composite sealGroup)
Creates the JAR sealing specification controls to seal packages.


createMainClassGroup

protected void createMainClassGroup(Composite parent)

handleNewManifestFileBrowseButtonPressed

protected void handleNewManifestFileBrowseButtonPressed()
Open an appropriate dialog so that the user can specify a manifest to save


handleManifestFileBrowseButtonPressed

protected void handleManifestFileBrowseButtonPressed()

handleMainClassBrowseButtonPressed

protected void handleMainClassBrowseButtonPressed()

handleSealPackagesDetailsButtonPressed

protected void handleSealPackagesDetailsButtonPressed()

handleUnSealPackagesDetailsButtonPressed

protected void handleUnSealPackagesDetailsButtonPressed()

updateEnableState

protected void updateEnableState()
Updates the enable state of this page's controls. Subclasses may extend.


updateSealingInfo

protected void updateSealingInfo()

isPageComplete

public boolean isPageComplete()

setPreviousPage

public void setPreviousPage(IWizardPage page)

finish

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

Specified by:
finish in interface IRemoteJarExportWizardPage

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.


updatePageCompletion

protected void updatePageCompletion()
Determine if the page is complete and update the page appropriately.


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

createLabel

protected Label createLabel(Composite parent,
                            String text,
                            boolean bold)
Creates a new label with a bold font.

Parameters:
parent - the parent control
text - the label text
Returns:
the new label control

setSize

protected void setSize(Control control,
                       int width,
                       int height)
Sets the size of a control.

Parameters:
control - the control for which to set the size
width - the new width of the control
height - the new height of the control

setEqualButtonSizes

protected void setEqualButtonSizes()
Makes the size of all buttons equal.


createSpacer

protected void createSpacer(Composite parent)
Creates a horizontal spacer line that fills the width of its container.

Parameters:
parent - the parent control

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

getPathFromString

protected IPath getPathFromString(String text)

createPackageDialog

protected SelectionDialog createPackageDialog(Set packageFragments)
Creates a selection dialog that lists all packages under the given package fragment root. The caller is responsible for opening the dialog with Window.open, and subsequently extracting the selected packages (of type IPackageFragment) via SelectionDialog.getResult.

Parameters:
packageFragments - the package fragments
Returns:
a new selection dialog

getPackagesFromDialog

protected IPackageFragment[] getPackagesFromDialog(SelectionDialog dialog)
Converts selection dialog results into an array of IPackageFragments. An empty array is returned in case of errors.

Throws:
ClassCastException - if results are not IPackageFragments

createWorkspaceFileSelectionDialog

protected ElementTreeSelectionDialog createWorkspaceFileSelectionDialog(String title,
                                                                        String message)
Creates and returns a dialog to choose an existing workspace file.


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.