Package org.eclipse.debug.core

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


        }
        wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, type.getFullyQualifiedName());
        wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName());
        wc.setAttribute(ProseLaunchConfiguration.ATTR_LAUNCH_PROSE_SERVER, true);
        try {
            config = wc.doSave();
        } catch (CoreException exception) {
            reportCreatingConfiguration(exception);
        }
        return config;
    }
View Full Code Here


        IPath tp = targetPath.makeRelative();
        try {
            ILaunchConfiguration config = findLaunchConfig(tp);
            if (config == null) {
                ILaunchConfigurationWorkingCopy wc = createConfiguration(tp);
                config = wc.doSave();
            }
            DebugUITools.launch(config, mode);
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

  public void setRunConfVmArgs(final ILaunchConfiguration conf, final String vmargs) throws CoreException
  {
    ILaunchConfigurationWorkingCopy confWc = conf.getWorkingCopy();
    confWc.setAttribute(JunitLaunchListener.VM_ARGS, vmargs);
    confWc.doSave();
  }

  public void setOrCreateVariable(final String value) throws CoreException
  {
    IStringVariableManager varMan = VariablesPlugin.getDefault().getStringVariableManager();
View Full Code Here

        IPath projectPath = element.getJavaProject().getProject().getFullPath().makeRelative();

        ILaunchConfiguration config = findLaunchConfig(projectPath);
        if (config == null) {
            ILaunchConfigurationWorkingCopy wc = createConfiguration(projectPath);
            wc.doSave();

            customise(element, wc);
            config = wc;
        } else {
            ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy();
View Full Code Here

        IPath tp = targetPath.makeRelative();
        try {
            ILaunchConfiguration config = findLaunchConfig(tp);
            if (config == null) {
                ILaunchConfigurationWorkingCopy wc = createConfiguration(tp);
                config = wc.doSave();
            }
            DebugUITools.launch(config, mode);
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

            PerlLaunchConfigurationConstants.ATTR_PROJECT_NAME,
            file.getProject().getName());
        wc.setAttribute(
            PerlLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
            (String) null);
        config = wc.doSave();
      }
    } catch (CoreException e) {
      PerlDebugPlugin.log(e);
    }
    return config;
View Full Code Here

        wc.setAttribute(CloudFoundryDebuggingLaunchConfigDelegate.HOST_NAME, host);
        wc.setAttribute(CloudFoundryDebuggingLaunchConfigDelegate.PORT, port + ""); //$NON-NLS-1$
        wc.setAttribute(CloudFoundryDebuggingLaunchConfigDelegate.TIME_OUT, timeout + ""); //$NON-NLS-1$
        wc.setAttribute(CloudFoundryDebuggingLaunchConfigDelegate.DEBUGGER_CONNECTION_ID,
            getDebuggerConnectionIdentifier());
        configuration = wc.doSave();

        DebugUITools.setLaunchPerspective(launchConfigType, ILaunchManager.DEBUG_MODE,
            IDebugUIConstants.ID_DEBUG_PERSPECTIVE);

        return configuration;
View Full Code Here

    workingCopy.setAttribute(
        IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type
            .getJavaProject().getElementName());
    workingCopy.setMappedResources(new IResource[] { type
        .getUnderlyingResource() });
    return workingCopy.doSave();
  }

  protected IPath[] getRuntimeClasspaths(ILaunchConfiguration configuration)
      throws CoreException {
    IRuntimeClasspathEntry[] entries = JavaRuntime
View Full Code Here

        wc.setAttribute(IPHPDebugConstants.OPEN_IN_BROWSER, PHPDebugPlugin.getOpenInBrowserOption());
        wc.setAttribute(IDebugParametersKeys.FIRST_LINE_BREAKPOINT, false);
        wc.setAttribute(Server.BASE_URL, URL);
        wc.setAttribute("auto_generated_url", false);
       
        return wc.doSave();
    }
}
View Full Code Here

        if ("debug".equals(mode)) {
            final List<String> moduleNames = getProjectAndModuleNames(projects);
            wc.setAttribute(ErlRuntimeAttributes.DEBUG_INTERPRET_MODULES, moduleNames);
        }
        wc.setMappedResources(getProjectResources(projects));
        return wc.doSave();
    }

    private IResource[] getProjectResources(final Collection<IErlProject> projects) {
        final List<IResource> result = Lists.newArrayListWithCapacity(projects.size());
        for (final IErlProject project : projects) {
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.