Class ManifestExportPageController
- java.lang.Object
-
- org.libreoffice.ide.eclipse.core.wizards.pages.ManifestExportPageController
-
public class ManifestExportPageController extends java.lang.ObjectTestable controller class for the Manifest export page, this class implements all the logic ruling the dialog controls.
-
-
Constructor Summary
Constructors Constructor Description ManifestExportPageController()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetGenerateManifest()java.lang.StringgetLoadManifestPath()Note that this value has no effect unlessgetGenerateManifest()returnsfalse.booleangetSaveManifest()Note that this value has no effect unlessgetGenerateManifest()returnstrue.java.lang.StringgetSaveManifestPath()Note that this value has no effect unlessgetSaveManifest()returnstrue.booleanisLoadManifestPathEnabled()booleanisSaveManifestEnabled()booleanisSaveManifestPathEnabled()voidsetGenerateManifest(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).voidsetLoadManifestPath(java.lang.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(java.lang.String pPath)Setting this value has no effect unlessisSaveManifestPathEnabled()returnstrue.
-
-
-
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-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
public void setSaveManifestPath(java.lang.String pPath)
Setting this value has no effect unlessisSaveManifestPathEnabled()returnstrue.- 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 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
public java.lang.String getSaveManifestPath()
Note that this value has no effect unlessgetSaveManifest()returnstrue.- Returns:
- the workspace-relative path to store the manifest to.
-
getLoadManifestPath
public java.lang.String 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.
-
-