Package org.contikios.cooja.plugins

Examples of org.contikios.cooja.plugins.ScriptRunner


       * We will manually start a test editor from here. */
      if (!hasEditor) {
        File scriptFile = new File(config.substring(0, config.length()-4) + ".js");
        if (scriptFile.exists()) {
          logger.info("Detected old simulation test, starting test editor manually from: " + scriptFile);
          ScriptRunner plugin = (ScriptRunner) gui.tryStartPlugin(ScriptRunner.class, gui, sim, null);
          if (plugin == null) {
            System.exit(1);
          }
          plugin.updateScript(scriptFile);
          try {
            plugin.setScriptActive(true);
          } catch (Exception e) {
            logger.fatal("Error: " + e.getMessage(), e);
            System.exit(1);
          }
        } else {
View Full Code Here


       * We will manually start a test editor from here. */
      if (!hasController) {
        File scriptFile = new File(config.substring(0, config.length()-4) + ".js");
        if (scriptFile.exists()) {
          logger.info("Detected old simulation test, starting test editor manually from: " + scriptFile);
          ScriptRunner plugin = (ScriptRunner) gui.tryStartPlugin(ScriptRunner.class, gui, sim, null);
          if (plugin == null) {
            System.exit(1);
          }
          plugin.updateScript(scriptFile);
          try {
            plugin.setScriptActive(true);
          } catch (Exception e) {
            logger.fatal("Error: " + e.getMessage(), e);
            System.exit(1);
          }
        } else {
View Full Code Here

TOP

Related Classes of org.contikios.cooja.plugins.ScriptRunner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.