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
FieldsModifier and TypeFieldDescriptionstatic final StringThe Dojo root file or system setting "dojo.root".static final StringThe iiziRun Customer root directory "iiziRunCustom.root".static final StringThe iiziRun Developer root directory "iiziRunDevel.root".static final StringThe JQuery file or system setting "jquery.file".static final StringThe plug-in ID.static final StringThe root directory "root".Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionstatic FileGets the Dojo root directory.static FileGets the file location on disk of a specific file name or system setting.static StringgetFileUrl(String name) Gets the file location in root disk of a specific file.static FileGets the JQuery file.static StringgetReplacementsFile(String fileInRoot, String... replacements) Gets a cached file from disk and processes replacements.static FileGets the file location on disk of the root directory.Gets root directory and all files required for the web server.static voidsetFileLocator(IGenericFileLocator newFileLocator) Assigns a new file locator, to be used for iiziGo Designer.
Field Details
PLUGIN_ID
ROOT
DOJO_ROOT
JQUERY_FILE
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
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
getFile
getFileUrl
getDojoRoot
getJQueryFile
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