Class ManifestExportPageController
java.lang.Object
org.libreoffice.ide.eclipse.core.wizards.pages.ManifestExportPageController
Testable controller class for the Manifest export page, this class implements all the logic ruling the dialog
controls.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanNote that this value has no effect unlessgetGenerateManifest()returnsfalse.booleanNote that this value has no effect unlessgetGenerateManifest()returnstrue.Note that this value has no effect unlessgetSaveManifest()returnstrue.booleanbooleanbooleanvoidsetGenerateManifest(boolean generate) 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).voidsetLoadManifestPath(String pPath) Setting this value has no effect unlessisLoadManifestPathEnabled()returnstrue.voidsetSaveManifest(boolean pSave) Setting this value has no effect unless the manifest is generated, but setting it totruewill save the manifest to the path returned bygetSaveManifestPath().voidsetSaveManifestPath(String pPath) Setting this value has no effect unlessisSaveManifestPathEnabled()returnstrue.
-
Constructor Details
-
ManifestExportPageController
public ManifestExportPageController()Default constructor.
-
-
Method Details
-
setGenerateManifest
public void setGenerateManifest(boolean generate) 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:
generate-trueto generate a new manifest,falseto use it.
-
setSaveManifest
public void setSaveManifest(boolean pSave) Setting this value has no effect unless the manifest is generated, but setting it totruewill save the manifest to the path returned bygetSaveManifestPath().- Parameters:
pSave-trueto save the manifest in the workspace,falseotherwise.
-
setSaveManifestPath
Setting this value has no effect unlessisSaveManifestPathEnabled()returnstrue.- Parameters:
pPath- the workspace-relative path to the manifest file to create.
-
setLoadManifestPath
Setting this value has no effect unlessisLoadManifestPathEnabled()returnstrue.- Parameters:
pPath- the workspace-relative path to the manifest file to load.
-
getGenerateManifest
public boolean getGenerateManifest()- Returns:
trueis the manifest has to be saved,falseif it needs to be loaded from a file in the workspace.
-
getSaveManifest
public boolean getSaveManifest()Note that this value has no effect unlessgetGenerateManifest()returnstrue.- Returns:
trueis the manifest has to be saved,falseotherwise.
-
getSaveManifestPath
Note that this value has no effect unlessgetSaveManifest()returnstrue.- Returns:
- the workspace-relative path to store the manifest to.
-
getLoadManifestPath
Note that this value has no effect unlessgetGenerateManifest()returnsfalse.- 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.
-