Package org.eclipse.debug.core

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


    private void doLaunch(final String mode, final Collection<IErlProject> projects)
            throws CoreException {
        final ILaunchConfiguration launchConfiguration = getLaunchConfiguration(projects,
                mode);
        bringConsoleViewToFront();
        launchConfiguration.launch(mode, null);
    }

    private void bringConsoleViewToFront() throws PartInitException {
        final IWorkbenchPage activePage = PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow().getActivePage();
View Full Code Here


    private ILaunch launchPeer() {
        final ILaunchConfiguration launchConfig = data.asLaunchConfiguration();
        try {
            final boolean registerForDebug = data.getLaunch() != null
                    || SystemConfiguration.getInstance().isDeveloper();
            return launchConfig.launch(ILaunchManager.RUN_MODE,
                    new NullProgressMonitor(), false, registerForDebug);
        } catch (final CoreException e) {
            ErlLogger.error(e);
            return null;
        }
View Full Code Here

    copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,
        projectName);
    copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
        typeName);
    ILaunchConfiguration config = copy.doSave();
    config.launch(mode, null, true);
    return config;
  }
}
View Full Code Here

        // Saving the launch configuration
        ILaunchConfiguration configuration = workingCopy.doSave();

        // Launching the launch configuration
        ILaunch launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );

        // Storing the launch configuration as a custom object in the LDAP Server for later use
        server.putCustomObject( LdapServersUtils.LAUNCH_CONFIGURATION_CUSTOM_OBJECT, launch );

        return launch;
View Full Code Here

      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
        args);
      // saves the new config
      config = wc.doSave();
    }
    ILaunch launch=config.launch(ILaunchManager.RUN_MODE, null);
    config.delete();
    return launch;
  }
  public static void runIJ(IFile currentScript, IProject currentProject) throws CoreException
View Full Code Here

        //Launch configuration launch tend to be called outside of GUI
        //thread, there is not reason to make this call GUI-safe.
        //
        //Both initialization and validation are now inside launch
        //configuration.
        lastLaunch.launch(ILaunchManager.RUN_MODE, null);
      } catch (CoreException e) {
        logger.log(Level.SEVERE, "", e);
      }
    }
  }
View Full Code Here

        String mode = ILaunchManager.RUN_MODE;
        ILaunch launch = new Launch(lc, mode, null);

        ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();

        ILaunch launched = launchConfiguration.launch(ILaunchManager.RUN_MODE, monitor);

        while (!launched.isTerminated()) {
          try {
            Thread.sleep(100);
          } catch (InterruptedException e) {
View Full Code Here

            // Saving the launch configuration
            ILaunchConfiguration configuration = workingCopy.doSave();

            // Launching the launch configuration
            launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );
        }
        catch ( CoreException e )
        {
            ApacheDsPluginUtils.reportError( Messages.getString( "LaunchServerJob.ErrorLaunching" ) + e.getMessage() ); //$NON-NLS-1$
        }
View Full Code Here

        String mode = ILaunchManager.RUN_MODE;
        ILaunch launch = new Launch(lc, mode, null);

        ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();

        ILaunch launched = launchConfiguration.launch(ILaunchManager.RUN_MODE, monitor);

        while (!launched.isTerminated()) {
          try {
            Thread.sleep(100);
          } catch (InterruptedException e) {
View Full Code Here

      Object element = ((IStructuredSelection)selection).getFirstElement();
      if(element != null && element instanceof IFile){
        try {
          IFile file = (IFile)element;
          ILaunchConfiguration config = getLaunchConfiguration(file);
          config.launch("run", new NullProgressMonitor());
        } catch(Exception ex){
          HTMLPlugin.logException(ex);
        }
      }
    }
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.