Examples of ILaunchConfiguration


Examples of org.eclipse.debug.core.ILaunchConfiguration

    String configTypeId = "configTypeId";
    ILaunchConfigurationType configType = mock(ILaunchConfigurationType.class);
    given(configType.getIdentifier()).willReturn(configTypeId);

    String configName = "configName";
    ILaunchConfiguration config = mock(ILaunchConfiguration.class);
    given(config.getName()).willReturn(configName);

    String modeId = ILaunchManager.RUN_MODE;
    ILaunch launch = mock(ILaunch.class);
    given(launch.getLaunchMode()).willReturn(modeId);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

    DebugPlugin.getDefault().addDebugEventListener(listener);
    tracker.setEnabled(true);

    // Launch the application:
    String configName = "TestEnabled";
    ILaunchConfiguration config = launch(configName,
        pkg.getJavaProject().getElementName(),
        unit.getTypes()[0].getFullyQualifiedName(), ILaunchManager.RUN_MODE);

    ILaunch launch = null;
    final Lock lock = new ReentrantLock();
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

    DebugPlugin.getDefault().addDebugEventListener(listener);
    tracker.setEnabled(true);

    // Launch two processes at the same time, running side by side:
    String configName1 = className1;
    ILaunchConfiguration config1 = launch(configName1,
        pkg.getJavaProject().getElementName(),
        unit1.getTypes()[0].getFullyQualifiedName(), ILaunchManager.RUN_MODE);
    String configName2 = className2;
    ILaunchConfiguration config2 = launch(configName2,
        pkg.getJavaProject().getElementName(),
        unit2.getTypes()[0].getFullyQualifiedName(), ILaunchManager.RUN_MODE);

    final Lock lock = new ReentrantLock();
    final Condition condition = lock.newCondition();
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

    };
    DebugPlugin.getDefault().addDebugEventListener(listener);

    // Launch in debug mode:
    tracker.setEnabled(true);
    ILaunchConfiguration config = launch(className,
        pkg.getJavaProject().getElementName(),
        unit.getTypes()[0].getFullyQualifiedName(), ILaunchManager.DEBUG_MODE);

    synchronized (suspendResume) {
      while (suspendResume[0] == null) {
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

  @Override
  protected LaunchEvent createEvent() {
    ILaunchConfigurationType type = mock(ILaunchConfigurationType.class);
    given(type.getIdentifier()).willReturn("typeId");
    ILaunchConfiguration config = mock(ILaunchConfiguration.class);
    given(config.getName()).willReturn("name");
    ILaunch launch = mock(ILaunch.class);
    given(launch.getLaunchMode()).willReturn("run");
    return new LaunchEvent(new Interval(0, 1), launch, config, type,
        new HashSet<IPath>(Arrays.asList(new Path("/1"), new Path("/2"))));
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

    ILaunchConfigurationWorkingCopy copy = type.newInstance(null, configName);
    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

Examples of org.eclipse.debug.core.ILaunchConfiguration

        // Indicating that we don't want any console to show up
        workingCopy.setAttribute( DebugPlugin.ATTR_CAPTURE_OUTPUT, false );

        // 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

Examples of org.eclipse.debug.core.ILaunchConfiguration

      //type= manager.getLaunchConfigurationType("org.apache.derby.ui.sysinfoDerbyLaunchConfigurationType");
      type= manager.getLaunchConfigurationType(CommonNames.SYSINFO_LAUNCH_CONFIG_TYPE);
    }else{
      type = manager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
    }
    ILaunchConfiguration config = null;
    // if the configuration already exists, delete it
    ILaunchConfiguration[] configurations = manager.getLaunchConfigurations(type);
    for (int i = 0; i < configurations.length; i++) {
      if (configurations[i].getName().equals(name))
        configurations[i].delete();
    }
    // else create a new one
    if (config == null) {
      ILaunchConfigurationWorkingCopy wc = type.newInstance(null, name);
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,
        proj.getProject().getName());
      // current directory should be the project root
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
        proj.getProject().getLocation().toString());
      // use the suplied args
      if((vmargs!=null)&&!(vmargs.equals(""))){
        wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmargs);
      }
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
        mainClass);
      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;
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

        if (timeoutString != null) {
            param= map.get("timeout"); //$NON-NLS-1$
            param.setValue(timeoutString);
        }
       
        ILaunchConfiguration configuration = launch.getLaunchConfiguration();
        boolean allowTerminate = false;
        if (configuration != null) {
            allowTerminate = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_ALLOW_TERMINATE, false);
        }
        subMonitor.worked(1);
        subMonitor.subTask(LaunchingMessages.SocketAttachConnector_Establishing_connection____2);
        try {
            VirtualMachine vm = connector.attach(map);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfiguration

                       
                        runningLaunches.add(launch);
                       
                        ensureLogViewerViewExists();
                       
                        ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();
                       
                        for (IEclipseLaunchListener listener : listeners)
                        {
                            listener.launchStarted(launch, launchConfiguration);
                        }
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.