Package com.github.marook.eclipse_remote_control.command.command

Examples of com.github.marook.eclipse_remote_control.command.command.ExternalToolsCommand


  /**
   * @deprecated Instantiate ExternalToolsCommand and run fireCmd instead.
   */
  public static void runExternalTool(final String configurationName) throws IOException {
    final ExternalToolsCommand cmd = new ExternalToolsCommand();
    cmd.setConfigurationName(configurationName);
   
    fireCommand(cmd);
  }
View Full Code Here


  public Command parseCommand(final String[] args) {
    if(args.length < 2 || args.length > 3){
      throw new CommandParseException("Expected 1 or 2 argument.");
    }
   
    final ExternalToolsCommand cmd = new ExternalToolsCommand();
    cmd.setConfigurationName(args[1]);
   
    if(args.length >= 3){
      cmd.setRunMode(parseRunMode(args[2]));
    }
   
    return cmd;
  }
View Full Code Here

    super(ExternalToolsCommand.ID);
  }
 
  @Override
  protected void internalExecute(final Command cmd) throws Exception {
    final ExternalToolsCommand c = (ExternalToolsCommand) cmd;
   
    final ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
   
    final String requestedCfgName = c.getConfigurationName();
   
    for(final ILaunchConfiguration cfg : manager.getLaunchConfigurations()){
      final String cfgName = cfg.getName();
     
      if(!requestedCfgName.equals(cfgName)) continue;

      cfg.launch(new RunModeMapper().getRunMode(c.getRunMode()), null);
     
      break;
    }
  }
View Full Code Here

TOP

Related Classes of com.github.marook.eclipse_remote_control.command.command.ExternalToolsCommand

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.