Class ManifestExportPageController

java.lang.Object
org.libreoffice.ide.eclipse.core.wizards.pages.ManifestExportPageController

public class ManifestExportPageController extends Object
Testable controller class for the Manifest export page, this class implements all the logic ruling the dialog controls.
  • 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 - 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(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(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 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 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.