Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfigurationType.newInstance()


            String basename = project.getName() + " REPL";
            if (files.length == 1) {
                basename += " [" + files[0].getName() + "]";
            }
           
            ILaunchConfigurationWorkingCopy wc = type.newInstance(
                    null, DebugPlugin.getDefault().getLaunchManager().
                    generateLaunchConfigurationName(basename));
           
            LaunchUtils.setFilesToLaunchString(wc, Arrays.asList(files));
           
View Full Code Here


      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());
View Full Code Here

    ILaunchConfigurationWorkingCopy wc = null;
    try {
      ILaunchConfigurationType configType = getConfigurationType();
      String suggestedName = launchable.getProject().getName();
      String launchName = getLaunchManager().generateLaunchConfigurationName(suggestedName);
      wc = configType.newInstance(null, launchName);
      wc.setAttribute(
        LaunchConstants.ATTR_PROJECT_NAME,
        suggestedName);
      wc.setAttribute(
        LaunchConstants.ATTR_PROGRAM_PATH,
View Full Code Here

    ILaunchConfiguration config = null;
    ILaunchConfigurationWorkingCopy wc = null;
    try {
      ILaunchConfigurationType configType = getConfigurationType();
      String launchName = getLaunchManager().generateLaunchConfigurationName(suggestedName);
      wc = configType.newInstance(null, launchName);
      wc.setAttribute(
        LaunchConstants.ATTR_PROJECT_NAME,
        launchable.getProject().getName());
      wc.setAttribute(
        LaunchConstants.ATTR_PROGRAM_PATH,
View Full Code Here

        ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType launchConfigurationType = manager
                .getLaunchConfigurationType("com.aptana.js.interactive_console.interactiveConsoleConfigurationType"); //$NON-NLS-1$
        ILaunchConfigurationWorkingCopy newInstance;
        try {
            newInstance = launchConfigurationType.newInstance(null, manager
                    .generateLaunchConfigurationName("JS Interactive Launch")); //$NON-NLS-1$
        } catch (CoreException e) {
            return null;
        }
        newInstance.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
View Full Code Here

        StringBuffer buffer = new StringBuffer("Debug Server");
        String name = buffer.toString().trim();

        try {

            ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, name);

            // Common Tab Arguments
            CommonTab tab = new CommonTab();
            tab.setDefaults(workingCopy);
            tab.dispose();
View Full Code Here

        ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType launchConfigurationType = manager
                .getLaunchConfigurationType("org.python.pydev.debug.interactiveConsoleConfigurationType");
        ILaunchConfigurationWorkingCopy newInstance;
        try {
            newInstance = launchConfigurationType.newInstance(null,
                    manager.generateLaunchConfigurationName("PyDev Interactive Launch"));
        } catch (CoreException e) {
            return null;
        }
        newInstance.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);
View Full Code Here

                if (launchConfiguration.getName().equals(launchConfigName)) {
                    launchConfiguration.delete();
                }
            }
            // (re)create
            ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(
                    pluginProject, launchConfigName);
            // put in 'exec' folder if possible
            IFolder execFolder = pluginProject.getFolder(new Path("exec"));
            if (execFolder.exists()) {
                workingCopy.setContainer(execFolder);
View Full Code Here

                                                                         final String confName) {
    ILaunchConfigurationWorkingCopy wConf = null;
   
    try {
      ILaunchConfigurationType configurationType = launchManager.getLaunchConfigurationType(TestNGLaunchConfigurationConstants.ID_TESTNG_APPLICATION);
      wConf = configurationType.newInstance(null /*project*/, confName); // launchManager.generateUniqueLaunchConfigurationNameFrom(confName));
      wConf.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
                         RemoteTestNG.class.getName());
      wConf.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,
                         project.getName());
    }
View Full Code Here

  }
 
  protected ILaunchConfiguration createConfiguration(IFile rsrc) throws CoreException {
    ILaunchConfigurationType configType = getConfigurationType();
    String projectName = rsrc.getProject().getName();
    ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, getLaunchManager().generateLaunchConfigurationName(projectName+" "+rsrc.getName()));
    BootGroovyScriptLaunchConfigurationDelegate.setScript(wc, rsrc);
    wc.setMappedResources(new IResource[] {rsrc});
    //Normally you should call:
    //config = wc.doSave();
    //But we skip it for now. The launch conf will not be saved so it will be 'transient'.
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.