Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationWorkingCopy.launch()


      mode = ILaunchManager.RUN_MODE;
    }

    ILaunchConfigurationWorkingCopy config = createConfig(label, vmInstall, classToLaunch, classpath, bootClasspath, vmArgs, prgArgs, debug, showInDebugger, saveConfig);

    return config.launch(mode, null);
  }

   private static ILaunchConfigurationWorkingCopy createConfig(String label, IVMInstall vmInstall, String classToLaunch, List<IPath> classpath, String[] bootClasspath, String vmArgs, String prgArgs, boolean debug, boolean showInDebugger, boolean saveConfig) throws CoreException {
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType launchType = manager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
View Full Code Here


    if (launchConfiguration != null) {
      try {
        ILaunchConfigurationWorkingCopy workingCopy = launchConfiguration.getWorkingCopy();
        workingCopy.setAttribute(
            TestabilityConstants.CONFIGURATION_ATTR_RUNNING_IN_COMPILATION_MODE, true);
        ILaunch launch = workingCopy.launch(TestabilityConstants.TESTABILITY_MODE, null);
      } catch (CoreException e) {
        logger.logException(e);
      }
    }
  }
View Full Code Here

                    .setAttribute(IExternalToolConstants.ATTR_WORKING_DIRECTORY, wdir);
            launchConfig.setAttribute(IExternalToolConstants.ATTR_LAUNCH_IN_BACKGROUND,
                    true);
            launchConfig.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, true);

            final ILaunch myLaunch = launchConfig.launch(ILaunchManager.RUN_MODE,
                    new NullProgressMonitor(), false, false);

            final ToolResults result = new ToolResults();
            if (myLaunch.getProcesses().length == 0) {
                ErlLogger.error("Tool process was not created?!");
View Full Code Here

                return;
            }
            final DebugTraceLaunchConfigurationDelegate ldtlcd = (DebugTraceLaunchConfigurationDelegate) delegate;
            ldtlcd.setInfo(target.getLaunch(), target,
                    debuggerTraceView.getEventsForLaunch(target));
            wc.launch(ILaunchManager.DEBUG_MODE, null);
        } catch (final CoreException e) {
            ErlLogger.error(e);
        }
    }
}
View Full Code Here

      ILaunchConfiguration launchConfiguration =
          configurationHelper.getLaunchConfiguration(projectName);
      if (launchConfiguration != null) {
        ILaunchConfigurationWorkingCopy workingCopy = launchConfiguration.getWorkingCopy();
        workingCopy.setAttribute(LaunchConfigurationConstants.RUN_ON_EVERY_SAVE, true);
        workingCopy.launch(ILaunchManager.RUN_MODE, null);
        Display.getDefault().asyncExec(new Runnable() {

            @Override
          public void run() {
            IEditorPart activeEditor = PlatformUI.getWorkbench()
View Full Code Here

    workingCopy.setAttribute(
        "org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY"/*IExternalToolConstants.ATTR_WORKING_DIRECTORY*/,
        m_workingDir.getAbsolutePath());
    // launch
    workingCopy.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
    return workingCopy.launch(ILaunchManager.RUN_MODE, monitor);
  }

  ////////////////////////////////////////////////////////////////////////////
  //
  // Copied from AntJRETab
View Full Code Here

        null, true);
    project = projectProvider.getProject();
    project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());

    ILaunchConfigurationWorkingCopy wc = createLaunch();
    ILaunch launch = wc.launch("run", new NullProgressMonitor());
   
    Thread.sleep(10000);
   
    try {
      IConnectionProvider defProvider =
View Full Code Here

        // Save the configuration
        configuration.doSave();

        // Launch
        configuration.launch(mode, null);
    }
   
    /**
     * Launch the SCA domain manager.
     *
 
View Full Code Here

        // Save the configuration
        configuration.doSave();

        // Launch
        configuration.launch(mode, null);
    }

    private static final String PING_HEADER =
        "GET /ping HTTP/1.0\n" + "Host: localhost\n"
            + "Content-Type: text/xml\n"
View Full Code Here

    ILaunchConfiguration launchConfig = Helper.findOrCreateLaunch(moduleName, projectName, true);
    ILaunchConfigurationWorkingCopy workingCopy = launchConfig.getWorkingCopy();
    workingCopy.setAttribute(Constants.LAUNCH_ATTR_GWT_COMPILE, true);
    // workingCopy.setAttribute(DebugPlugin.ATTR_CAPTURE_OUTPUT, true);
    ILaunch compiler = workingCopy.launch(ILaunchManager.RUN_MODE, null, false, true);
    // launch(launchConfig);

    try {
      synchronized (this) {
        int i = 0;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.