Package com.iizix.js
Class JSFiles
java.lang.Object
com.iizix.js.JSFiles
Main class for the iiziGo Designer JavaScript plug-in used to hold the file required for browser and JavaScript on disk outside of Jar plug-in files to be accessed directly as file:/ or http[s]:// URI's.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The Dojo root file or system setting "dojo.root".static final String
The iiziRun Customer root directory "iiziRunCustom.root".static final String
The iiziRun Developer root directory "iiziRunDevel.root".static final String
The JQuery file or system setting "jquery.file".static final String
The plug-in ID.static final String
The root directory "root".Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionstatic File
Gets the Dojo root directory.static File
Gets the file location on disk of a specific file name or system setting.static String
getFileUrl
(String name) Gets the file location in root disk of a specific file.static File
Gets the JQuery file.static String
getReplacementsFile
(String fileInRoot, String... replacements) Gets a cached file from disk and processes replacements.static File
Gets the file location on disk of the root directory.Gets root directory and all files required for the web server.static void
setFileLocator
(IGenericFileLocator newFileLocator) Assigns a new file locator, to be used for iiziGo Designer.
Field Details
PLUGIN_ID
The plug-in ID.- See Also:
ROOT
The root directory "root".- See Also:
DOJO_ROOT
The Dojo root file or system setting "dojo.root".- See Also:
JQUERY_FILE
The JQuery file or system setting "jquery.file".- See Also:
IIZI_RUN_DEVEL_ROOT
The iiziRun Developer root directory "iiziRunDevel.root".- See Also:
IIZI_RUN_CUSTOM_ROOT
The iiziRun Customer root directory "iiziRunCustom.root".- See Also:
Constructor Details
JSFiles
public JSFiles()
Method Details
getRootFiles
Gets root directory and all files required for the web server.- Returns:
- An immutable list of file names.
setFileLocator
Assigns a new file locator, to be used for iiziGo Designer.- Parameters:
newFileLocator
- The new file locator for Eclipse IDE URL bundle resolving to File.
getRoot
Gets the file location on disk of the root directory.- Parameters:
dirHint
- The directory hint might be non-null. If so, that one should be used.
getFile
Gets the file location on disk of a specific file name or system setting.getFileUrl
Gets the file location in root disk of a specific file.getDojoRoot
Gets the Dojo root directory.- Returns:
- The Dojo Root directory.
getJQueryFile
Gets the JQuery file.- Returns:
- The file of the jQuery Jar.
getReplacementsFile
public static String getReplacementsFile(String fileInRoot, String... replacements) throws IOException Gets a cached file from disk and processes replacements.Replacements are processed as all text between to replacement strings, e.g. "%REPL%" or "".
- Parameters:
fileInRoot
- The file in the root to load (and cache).replacements
- The list of pairs for the replacements.- Throws:
IOException