org.openoffice.ide.eclipse.core.wizards.pages
Class ManifestExportPageController

java.lang.Object
  extended by org.openoffice.ide.eclipse.core.wizards.pages.ManifestExportPageController

public class ManifestExportPageController
extends java.lang.Object

Testable controller class for the Manifest export page, this class implements all the logic ruling the dialog controls.

Author:
Cédric Bosdonnat

Constructor Summary
ManifestExportPageController()
          Default constructor.
 
Method Summary
 boolean getGenerateManifest()
           
 java.lang.String getLoadManifestPath()
          Note that this value has no effect unless getGenerateManifest() returns false.
 boolean getSaveManifest()
          Note that this value has no effect unless getGenerateManifest() returns true.
 java.lang.String getSaveManifestPath()
          Note that this value has no effect unless getSaveManifest() returns true.
 boolean isLoadManifestPathEnabled()
           
 boolean isSaveManifestEnabled()
           
 boolean isSaveManifestPathEnabled()
           
 void setGenerateManifest(boolean pGenerate)
          Sets whether to use an existing manifest file or generate a new one (note that the generated manifest file may or may not be saved).
 void setLoadManifestPath(java.lang.String pPath)
          Setting this value has no effect unless isLoadManifestPathEnabled() returns true.
 void setSaveManifest(boolean pSave)
          Setting this value has no effect unless the manifest is generated, but setting it to true will save the manifest to the path returned by getSaveManifestPath().
 void setSaveManifestPath(java.lang.String pPath)
          Setting this value has no effect unless isSaveManifestPathEnabled() returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifestExportPageController

public ManifestExportPageController()
Default constructor.

Method Detail

setGenerateManifest

public void setGenerateManifest(boolean pGenerate)
Sets whether to use an existing manifest file or generate a new one (note that the generated manifest file may or may not be saved).

Parameters:
pGenerate - true to generate a new manifest, false to use it.

setSaveManifest

public void setSaveManifest(boolean pSave)
Setting this value has no effect unless the manifest is generated, but setting it to true will save the manifest to the path returned by getSaveManifestPath().

Parameters:
pSave - true to save the manifest in the workspace, false otherwise.

setSaveManifestPath

public void setSaveManifestPath(java.lang.String pPath)
Setting this value has no effect unless isSaveManifestPathEnabled() returns true.

Parameters:
pPath - the workspace-relative path to the manifest file to create.

setLoadManifestPath

public void setLoadManifestPath(java.lang.String pPath)
Setting this value has no effect unless isLoadManifestPathEnabled() returns true.

Parameters:
pPath - the workspace-relative path to the manifest file to load.

getGenerateManifest

public boolean getGenerateManifest()
Returns:
true is the manifest has to be saved, false if it needs to be loaded from a file in the workspace.

getSaveManifest

public boolean getSaveManifest()
Note that this value has no effect unless getGenerateManifest() returns true.

Returns:
true is the manifest has to be saved, false otherwise.

getSaveManifestPath

public java.lang.String getSaveManifestPath()
Note that this value has no effect unless getSaveManifest() returns true.

Returns:
the workspace-relative path to store the manifest to.

getLoadManifestPath

public java.lang.String getLoadManifestPath()
Note that this value has no effect unless getGenerateManifest() returns false.

Returns:
the workspace-relative path of the manifest file to load.

isSaveManifestEnabled

public boolean isSaveManifestEnabled()
Returns:
the state of the save manifest check box.

isSaveManifestPathEnabled

public boolean isSaveManifestPathEnabled()
Returns:
the state of the save path row.

isLoadManifestPathEnabled

public boolean isLoadManifestPathEnabled()
Returns:
the state of the load path row.