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 SummaryFieldsModifier and TypeFieldDescription- static 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 SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- static FileGets the Dojo root directory.- static FileGets 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 FileGets the JQuery file.- static String- getReplacementsFile- (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 void- setFileLocator- (IGenericFileLocator newFileLocator) Assigns a new file locator, to be used for iiziGo Designer.
- Field Details- PLUGIN_IDThe plug-in ID.- See Also:
 
- ROOTThe root directory "root".- See Also:
 
- DOJO_ROOTThe Dojo root file or system setting "dojo.root".- See Also:
 
- JQUERY_FILEThe JQuery file or system setting "jquery.file".- See Also:
 
- IIZI_RUN_DEVEL_ROOTThe iiziRun Developer root directory "iiziRunDevel.root".- See Also:
 
- IIZI_RUN_CUSTOM_ROOTThe iiziRun Customer root directory "iiziRunCustom.root".- See Also:
 
 
- Constructor Details- JSFilespublic JSFiles()
 
- Method Details- getRootFilesGets root directory and all files required for the web server.- Returns:
- An immutable list of file names.
 
- setFileLocatorAssigns a new file locator, to be used for iiziGo Designer.- Parameters:
- newFileLocator- The new file locator for Eclipse IDE URL bundle resolving to File.
 
- getRootGets 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.
 
- getFileGets the file location on disk of a specific file name or system setting.
- getFileUrlGets the file location in root disk of a specific file.
- getDojoRootGets the Dojo root directory.- Returns:
- The Dojo Root directory.
 
- getJQueryFileGets the JQuery file.- Returns:
- The file of the jQuery Jar.
 
- getReplacementsFilepublic 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