Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationType


    // ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;

    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();

    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(VDM_LAUNCH_CONFIG_TYPE);// IVdmRtDebugConstants.ATTR_VDM_PROGRAM);
    try
    {
      wc = configType.newInstance(null, launchManager.generateUniqueLaunchConfigurationNameFrom(project.getName()));

      final String VDM_LAUNCH_CONFIG_PROJECT = "vdm_launch_config_project";
      final String VDM_LAUNCH_CONFIG_MODULE = "vdm_launch_config_module";
      final String VDM_LAUNCH_CONFIG_OPERATION = "vdm_launch_config_method";
      final String VDM_LAUNCH_CONFIG_STATIC_OPERATION = "vdm_launch_config_static_method";
View Full Code Here


  }

  protected IDebugTarget getRunningTarget() throws CoreException
  {
    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(DESTECS_LAUNCH_ID);
    IDebugTarget target = null;
    for (ILaunch iLaunch : launchManager.getLaunches())
    {
     
        if(iLaunch.getLaunchConfiguration().getType() == configType)
View Full Code Here

    for (DebugEvent debugEvent : events)
    {
      if(debugEvent.getSource() instanceof IDebugTarget)
      {
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(DESTECS_LAUNCH_ID);
        IDebugTarget target = (IDebugTarget) debugEvent.getSource();
        try
        {
          if(target.getLaunch().getLaunchConfiguration().getType() == configType)
          {
View Full Code Here

  {   
    String type = docEle.getAttribute("type");
    NodeList nodes = docEle.getChildNodes();
    ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;
    ILaunchConfigurationType configType = getLaunchManager().getLaunchConfigurationType(type);
    try
    {
      wc = configType.newInstance(null, fileName);
     
      for(int index = 0; index < nodes.getLength(); index++){
        Node node = nodes.item(index);
                if(node.getNodeName().equals("#text"))
                  continue;
View Full Code Here

  {
    ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;
    try
    {
      ILaunchConfigurationType configType = getConfigurationType(conf.type);
      wc = configType.newInstance(null, getLaunchManager().generateLaunchConfigurationName("Generated_"+conf.name));
      for ( Object attKey : conf.attributes.keySet())
      {
        Object value = conf.attributes.get(attKey.toString());
        if(value instanceof String)
        {
View Full Code Here

        // Configure the node
        String nodeName = configureNode(contributionURI, contributionLocation, compositeURI, progressMonitor);
   
        // Get the node launch configuration
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType launchConfigurationType =launchManager.getLaunchConfigurationType(TUSCANY_LAUNCH_CONFIGURATIONTYPE);
        ILaunchConfiguration configuration = null;
        for (ILaunchConfiguration c : launchManager.getLaunchConfigurations(launchConfigurationType)) {
            if (file.getFullPath().toString().equals(c.getAttribute("COMPOSITE_PATH", ""))) {
                configuration = c;
                break;
            }
        }
       
        if (configuration == null) {
            progressMonitor.worked(10);
            if (progressMonitor.isCanceled()) {
                return;
            }

            // Create a new launch configuration
            ILaunchConfigurationWorkingCopy newConfiguration = launchConfigurationType.newInstance(null,
                                        launchManager.generateUniqueLaunchConfigurationNameFrom(file.getName()));

            // Set the project and type to launch
            newConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, file.getProject().getName());
            newConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "org.apache.tuscany.sca.node.launcher.NodeLauncher");
View Full Code Here

            // Get the SCA domain project
            IProject domainProject = domainProject(progressMonitor);
           
            // Get the domain manager launch configuration
            ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
            ILaunchConfigurationType launchConfigurationType =launchManager.getLaunchConfigurationType(TUSCANY_LAUNCH_CONFIGURATIONTYPE);
            ILaunchConfiguration configuration = null;
            for (ILaunchConfiguration c : launchManager.getLaunchConfigurations(launchConfigurationType)) {
                if (TUSCANY_DOMAIN_LAUNCH_CONFIGURATION.equals(c.getName())) {
                    configuration = c;
                    break;
                }
            }
           
            if (configuration == null) {
                progressMonitor.worked(10);
                if (progressMonitor.isCanceled()) {
                    return;
                }
   
                // Create a new launch configuration
                ILaunchConfigurationWorkingCopy newConfiguration = launchConfigurationType.newInstance(null, TUSCANY_DOMAIN_LAUNCH_CONFIGURATION);

                // Set the project and type to launch
                newConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, domainProject.getProject().getName());
                newConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "org.apache.tuscany.sca.node.launcher.DomainManagerLauncher");
                newConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, domainProject.getLocation().toString());
View Full Code Here

        {
            // Getting the default VM installation
            IVMInstall vmInstall = JavaRuntime.getDefaultVMInstall();

            // Creating a new editable launch configuration
            ILaunchConfigurationType type = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(
                IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION );
            ILaunchConfigurationWorkingCopy workingCopy = type.newInstance( null, "Starting " + server.getName() );

            // Setting the JRE container path attribute
            workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, vmInstall
                .getInstallLocation().toString() );
View Full Code Here

    assertThat(event.getLaunchConfiguration(), equalTo(config));
  }

  @Test
  public void getLaunchConfigurationTypeShouldReturnTheLaunchConfigurationType() {
    ILaunchConfigurationType type = mock(ILaunchConfigurationType.class);
    LaunchEvent event = new LaunchEvent(
        new Interval(0, 1),
        mock(ILaunch.class),
        mock(ILaunchConfiguration.class),
        type,
View Full Code Here

          segments.add(mode);
          break;
        }
        case LAUNCH_TYPE: {
          String id = d.getLaunchTypeId();
          ILaunchConfigurationType t = manager.getLaunchConfigurationType(id);
          if (t == null) {
            t = new UndefinedLaunchConfigurationType(id);
          }
          segments.add(t);
          break;
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.ILaunchConfigurationType

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.