public class BLMain
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENT_DIR
This constant is set to the path of where biolegato was run
The value of this constant determined at runtime.
|
static boolean |
debug
Stores information regarding the usage of the debug command
NOTE: This should always be accessed using BLMain.debug
|
Constructor and Description |
---|
BLMain() |
Modifier and Type | Method and Description |
---|---|
void |
browser(java.net.URL dest)
Opens an HTML web browser in BioLegato
WARNING: if the function fails, null will be returned instead
of an object.
|
static java.lang.String |
envreplace(java.lang.String original)
For each instance of $XXX (where XXX is the name of an environment
variable), this function replaces $XXX with its current value (which
is obtained from the environment via.
|
static void |
loadPCD(DataCanvas canvas)
Loads the entire PCD menu structure into BioLegato
|
static void |
loadPluginMenus(DataCanvas canvas,
java.io.File path)
Recursively load all of the Plugin menus (within a given path)
into a BioLegato canvas.
|
static void |
main(java.lang.Class<? extends DataCanvas> canvasClass,
java.util.Properties propImport,
java.util.List<java.io.File> dataAdd,
boolean pipeInput)
Starts a new BioLegato instance (i.e.
|
static void |
main(java.lang.Class<? extends DataCanvas> canvas,
java.lang.String[] args)
Starts BioLegato from the command line.
|
static java.lang.String[] |
toPathList(java.lang.String searchstring)
Separates a string into a list of substrings, using File.pathSeparator
as the delimiter.
|
public static final java.lang.String CURRENT_DIR
public static boolean debug
public static void main(java.lang.Class<? extends DataCanvas> canvas, java.lang.String[] args)
Starts BioLegato from the command line.
This method is split into the following sections:
Note, the above list is NOT the same as the list for
main (String[] args)
.
This method contains code necessary for enabling Turtle SHELL.
canvas
- the canvas class to load BioLegato with.args
- the command line arguments for BioLegato.public static void main(java.lang.Class<? extends DataCanvas> canvasClass, java.util.Properties propImport, java.util.List<java.io.File> dataAdd, boolean pipeInput)
Starts a new BioLegato instance (i.e. loads a canvas).
This method is split into the following sections:
canvasClass
- the DataCanvas to load BioLegato with.public static java.lang.String envreplace(java.lang.String original)
For each instance of $XXX (where XXX is the name of an environment variable), this function replaces $XXX with its current value (which is obtained from the environment via. System.getenv).
This function provides functionality similar to BASH (i.e. replaces $XXX with the value of XXX in the environment.)
NOTE: there are some environment variables intrinsic to BioLegato.
These variables are:
original
- the string to modify.public static java.lang.String[] toPathList(java.lang.String searchstring)
Separates a string into a list of substrings, using File.pathSeparator as the delimiter. This allows the user to specify multiple paths in a string.
This function does NOT evaluates any environment variables within the original or split strings.
searchstring
- the string to split into multiple file paths.public static void loadPluginMenus(DataCanvas canvas, java.io.File path)
Recursively load all of the Plugin menus (within a given path) into a BioLegato canvas. Note that Plugin menus are Java classes which conform to the following specification:
public static void loadPCD(DataCanvas canvas)
public void browser(java.net.URL dest)
dest
- the destination URL to display in the web browser.Copyright © 2008-2022 University of Manitoba.