Package org.pdtextensions.core.launch

Examples of org.pdtextensions.core.launch.ScriptLauncher


    fixerArgs.set(0, fileToFix);
    Logger.debug("Running cs-fixer: " + fixerArgs.get(1));
    monitor.setTaskName("Fixing " + fixerArgs.get(1));
   
    try {
      ScriptLauncher launcher = launcherManager.getLauncher(FixerEnvironmentFactory.LAUNCHER_KEY, source.getScriptProject().getProject());
      launcher.addResponseListener(new ExecutionResponseAdapter() {
        @Override
        public void executionMessage(String message) {
          System.err.println(message);
        }
      });
      launcher.launch("fix", fixerArgs.toArray(new String[fixerArgs.size()]));
    } catch (Exception e) {
      e.printStackTrace();
    }
   
    source.getUnderlyingResource().refreshLocal(IResource.DEPTH_ZERO, null);
View Full Code Here

TOP

Related Classes of org.pdtextensions.core.launch.ScriptLauncher

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.