ilog.rules.studio.javascript

Class IlrJsRunnerPlatformRunnable

  • java.lang.Object
    • ilog.rules.studio.javascript.IlrJsRunnerPlatformRunnable
  • All Implemented Interfaces:
    org.eclipse.core.runtime.IPlatformRunnable


    public class IlrJsRunnerPlatformRunnable
    extends java.lang.Object
    implements org.eclipse.core.runtime.IPlatformRunnable
    When the plug-in application is started in headless mode an instance of this class is run.

    It analyzes the argument provided in the headless application. The IlrJsRunnerConstants class lists the valid arguments. IlrJsRunnerConstants.SCRIPT_ARG is a mandatory argument as it indicates the name of the plug-in to execute.

    See Also:
    IlrJavascriptPlugin
    • Field Summary

      • Fields inherited from interface org.eclipse.core.runtime.IPlatformRunnable

        EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object run(java.lang.Object args)
      Called by the headless application startup along with the arguments provided to start eclipse.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrJsRunnerPlatformRunnable

        public IlrJsRunnerPlatformRunnable()
    • Method Detail

      • run

        public java.lang.Object run(java.lang.Object args)
                             throws java.lang.Exception
        Called by the headless application startup along with the arguments provided to start eclipse.
        Specified by:
        run in interface org.eclipse.core.runtime.IPlatformRunnable
        Throws:
        java.lang.Exception
        Parameters:
        args - The arguments of the headless command line.
        Returns:
        An Integer object return code. When the javascript returns an int value this is what is returned. Possible error codes are: IPlatformRunnable.EXIT_OK, IlrJsRunnerConstants.NO_FILE_PATH_ERROR_CODE and IlrJsRunnerConstants.INVALID_FILE_PATH_ERROR_CODE

© Copyright IBM Corp. 1987, 2017