public class IlrJavascriptPlugin
extends org.eclipse.core.runtime.Plugin
IlrJsRunnerPlatformRunnable. It accepts the arguments
listed in IlrJsRunnerConstants.
The plug-in contains methods to print (or not to print) messages to the standard and error output.
Below is a sample command to start this plug-in in headless mode. The "-script"
argument is mandatory.
java -jar plugins/org.eclipse.equinox.launcher_1.0.1..jar -data "workspace_absolute_file_path" -clean -application ilog.rules.studio.javascript.runner -script "javascript_absolute_file_path"
| Modifier and Type | Field and Description |
|---|---|
static boolean |
error
Indicates if the errors are printed to the error output.
|
static java.lang.String |
PLUGIN_ID
ID of the plug-in.
|
static boolean |
progress
Indicates if the progress tasks are printed to the standard output.
|
static boolean |
trace
Indicates if the steps of the execution can be printed to the standard output.
|
static boolean |
warning
Indicates if the warnings are printed to the standard output.
|
| Constructor and Description |
|---|
IlrJavascriptPlugin()
The constructor of the plug-in.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endProgress(java.lang.String task) |
void |
error(java.lang.Exception e,
java.lang.String msg)
Prints an exception message to the error output if the
error
flag is set to true. |
void |
error(java.lang.String msg)
Prints the error message to the error output if the
error
flag is set to true. |
static IlrJavascriptPlugin |
getDefault()
Returns the shared instance of this plug-in.
|
void |
incrementProgress(java.lang.String task) |
void |
start(org.osgi.framework.BundleContext context)
Called by the Eclipse framework when the plug-in starts.
|
void |
startProgress(java.lang.String task,
int amount) |
void |
stop(org.osgi.framework.BundleContext context)
Called when the Eclipse framework shuts down this plug-in.
|
void |
trace(java.lang.String msg)
Prints the given message to the standard output if the
trace
flag is set to true. |
void |
warning(java.lang.String msg)
Prints a message to the standard output if the
warning
flag is set to true. |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toStringpublic static boolean trace
false.
The trace, error, and warning values can be set using
the command-line arguments listed in IlrJsRunnerConstants.public static boolean error
true.
The trace, error, and warning values can be set using
the command-line arguments listed in IlrJsRunnerConstants.public static boolean warning
true.
The trace, error, and warning values can be set using
the command-line arguments listed in IlrJsRunnerConstants.public static boolean progress
false.
The trace, error, and warning values can be set using
the command-line arguments listed in IlrJsRunnerConstants.public static final java.lang.String PLUGIN_ID
public IlrJavascriptPlugin()
getDefault() method.public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorstart in class org.eclipse.core.runtime.Pluginjava.lang.Exceptionpublic void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
getDefault() returns null.stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.core.runtime.Pluginjava.lang.ExceptionPlugin.stop(org.osgi.framework.BundleContext)public static IlrJavascriptPlugin getDefault()
public void trace(java.lang.String msg)
trace
flag is set to true.msg - The message to print to the standard output.public void error(java.lang.String msg)
error
flag is set to true.msg - The message to print to the error output.public void warning(java.lang.String msg)
warning
flag is set to true.msg - The message to print to the standard output.public void error(java.lang.Exception e,
java.lang.String msg)
error
flag is set to true.e - The exception to print to the error input.msg - The message to print to the error output.public void startProgress(java.lang.String task,
int amount)
public void incrementProgress(java.lang.String task)
public void endProgress(java.lang.String task)
© Copyright IBM Corp. 1987, 2017