Class FileRoot

java.lang.Object
com.eco.bio7.batch.FileRoot

public class FileRoot extends Object
This class provides static methods to get the Workspace, R, OpenOffice and script path location of the Bio7 application.
  • Constructor Details

    • FileRoot

      public FileRoot()
  • Method Details

    • getCurrentCompileDir

      public static String getCurrentCompileDir()
      A method to get the current compile file directory. The directory is set before the compilation process.
      Returns:
      the directory of the current file which will be compiled.
    • setCurrentCompileDir

      public static void setCurrentCompileDir(String currentCompileDir)
      Sets the current compile directory. For internal use.
      Parameters:
      currentCompileDir -
    • getFileRoot

      public static String getFileRoot()
      Returns the path of the workspace location of the Bio7 application.
      Returns:
      the path as a string.
    • getRLocation

      public static String getRLocation()
      Returns the R path from the preferences.
      Returns:
      the path as a string.
    • getOOLocation

      public static String getOOLocation()
      Returns the OpenOffice path from the preferences.
      Returns:
      the path as a string.
    • getGeneralScriptLocation

      public static String getGeneralScriptLocation()
      Returns the general script path from the preferences.
      Returns:
      the path as a string.
    • getStartupScriptLocation

      public static String getStartupScriptLocation()
      Returns the startup script path from the preferences.
      Returns:
      the path as a string.
    • getGridScriptLocation

      public static String getGridScriptLocation()
      Returns the grid script path from the preferences.
      Returns:
      the path as a string.
    • getRShellScriptLocation

      public static String getRShellScriptLocation()
      Returns the R shell script path from the preferences.
      Returns:
      the path as a string.
    • getPythonShellScriptLocation

      public static String getPythonShellScriptLocation()
      Returns the Python shell script path from the preferences.
      Returns:
      the path as a string.
    • getWorkspacePath

      public static String getWorkspacePath()
      Returns the workspace path.
      Returns:
      the path as a string.
    • getPluginsPath

      public static String getPluginsPath(String symbolicName, String relativePath)
      Returns the path to the plugins folder.
      Parameters:
      symbolicName - the symbolic name of the bundle to be returned.
      relativePath - file path relative to plug-in installation location.
      Returns:
      the path as a string.