Examples of launch()


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

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

    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

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

                    .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

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

                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

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

      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

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

    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

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

        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

Examples of org.eclipse.debug.ui.ILaunchShortcut.launch()

                if (id.equals(elements[i].getAttribute("id"))) //$NON-NLS-1$
                    try
                    {
                        ILaunchShortcut shortcut = (ILaunchShortcut) elements[i].createExecutableExtension("class"); //$NON-NLS-1$
                        // preLaunch();
                        shortcut.launch(new StructuredSelection(getLaunchObject()), mode);
                    }
                    catch (CoreException e1)
                    {
                        e1.printStackTrace();
                    }
View Full Code Here

Examples of org.eclipse.osgi.framework.internal.core.OSGi.launch()

public class EquinoxStartTestCase extends TestCase {

    public void testStart() throws Exception {
        FrameworkAdaptor adaptor = new DefaultAdaptor(new String[]{});
        OSGi osgi = new OSGi(adaptor);
        osgi.launch();
//        FileInputStream stream = new FileInputStream("/Users/jmarino/workspace/tuscany/tuscany/tuscany/sandbox/jboynes/sca/runtime/equinox/src/test/resources/http.jar");
//        osgi.getBundleContext().installBundle("foo", stream);
        for (Bundle bundle : osgi.getBundleContext().getBundles()) {

        }
View Full Code Here

Examples of org.eclipse.osgi.service.runnable.ApplicationLauncher.launch()

        curDefaultApplicationListener = defaultAppListener;
      }
      if (curDefaultApplicationListener != null)
        curDefaultApplicationListener.launch(appHandle);
      else
        appLauncher.launch(appHandle, appHandle.getArguments().get(IApplicationContext.APPLICATION_ARGS));
    } else {
      AnyThreadAppLauncher.launchEclipseApplication(appHandle);
      DefaultApplicationListener curDefaultApplicationListener = null;
      if (isDefault) {
        ApplicationLauncher appLauncher = null;
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.