Package org.eclipse.debug.core

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


      return false;
    }
    if (configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, notFound).equals(WORuntimeClasspathProvider.VERY_OLD_ID)) {
      ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();
      workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH_PROVIDER, WORuntimeClasspathProvider.ID);
      workingCopy.doSave();
      this.informUser("LaunchConfiguration update. The message should occur only once. Please launch your app again.");
      return false;
    }
    return super.preLaunchCheck(configuration, mode, monitor);
  }
View Full Code Here


      wc = configType.newInstance(null, getLaunchManager().generateLaunchConfigurationName(type.getTypeQualifiedName('.')));
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, type.getFullyQualifiedName());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, type.getJavaProject().getElementName());
      wc.setMappedResources(new IResource[] {type.getUnderlyingResource()});
      WOJavaLocalApplicationLaunchConfigurationDelegate.initConfiguration(wc);
      config = wc.doSave();
    } catch (CoreException exception) {
      MessageDialog.openError(getShell(), LauncherMessages.JavaLaunchShortcut_3, exception.getStatus().getMessage());
    }
    return config;
  }
View Full Code Here

      wc.setAttribute(JavaScriptLaunchConstants.ATTR_JAVASCRIPT_INCLUDES, includes);
    } catch(Exception ex){
      HTMLPlugin.logException(ex);
    }
   
    return wc.doSave();
  }

}
View Full Code Here

     
      // create a new configuration for the file
        ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(container, configname);
        workingCopy.setAttribute(Constants.KEY_FILE_PATH, path);
        setMoreAttributes(workingCopy);
        return workingCopy.doSave();
    }

  protected void setMoreAttributes(ILaunchConfigurationWorkingCopy workingCopy) {
    NodeclipseConsole.write(this.getClass().getName()+"\n");
  }
View Full Code Here

      IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();   
      nodeDebugPort = preferenceStore.getInt(PreferenceConstants.NODE_DEBUG_PORT);
      if (nodeDebugPort==0) nodeDebugPort=5858;
    };
    workingCopy.setAttribute("debug_port", nodeDebugPort); //was 5858);
    final ILaunchConfiguration config = workingCopy.doSave();
    // super.launch(config, mode, launch, monitor);
    Display.getDefault().asyncExec(new Runnable() {
      @Override
      public void run() {
        DebugUITools.launch(config, mode);
View Full Code Here

     
      // create a new configuration for the file
        ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, configname);
        workingCopy.setAttribute("KEY_FILE_PATH", path); //Constants.
        setMoreAttributes(workingCopy);
        return workingCopy.doSave();
    }

  protected void setMoreAttributes(ILaunchConfigurationWorkingCopy workingCopy) {
    //NodeclipseConsole.write(this.getClass().getName()+"\n");
    NodeclipseLogger.log(this.getClass().getName()+"\n");
View Full Code Here

    private ILaunchConfiguration createLaunchConfiguration(ILaunchConfigurationType type, String path, IFile file) throws CoreException {
        // create a new configuration for the file
        ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, file.getName());
        workingCopy.setAttribute(Constants.KEY_FILE_PATH, path);
        workingCopy.setAttribute(Constants.KEY_GOAL, getGoal());
        return workingCopy.doSave();
    }

    @Override
    public String getGoal() {
        return Constants.BLANK_STRING;
View Full Code Here

    private ILaunchConfiguration createLaunchConfiguration(ILaunchConfigurationType type, String path, IFile file) throws CoreException {
        // create a new configuration for the file
        ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, file.getName());
        workingCopy.setAttribute(Constants.KEY_FILE_PATH, path);
        workingCopy.setAttribute(Constants.KEY_GOAL, getGoal());
        return workingCopy.doSave();
    }

    @Override
    public String getGoal() {
        return Constants.BLANK_STRING;
View Full Code Here

     
      // create a new configuration for the file
        ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, configname);
        workingCopy.setAttribute(GradleConstants.KEY_FILE_PATH, path);
        setMoreAttributes(workingCopy);
        return workingCopy.doSave();
    }

  protected void setMoreAttributes(ILaunchConfigurationWorkingCopy workingCopy) {
    //NodeclipseConsole.write(this.getClass().getName()+"\n");
    NodeclipseLogger.log(this.getClass().getName()+"\n");
View Full Code Here

    ILaunchConfigurationWorkingCopy result =
        WIP_CONFIGURATION_TYPE.newInstance(container, original.getName() + Messages.DevToolsProtocolDeprecationTab_CONFIGURATION_NAME_SUFFIX);

    result.setAttributes(original.getAttributes());

    return result.doSave();
  }

  private static final String WIP_TYPE_ID = "org.chromium.debug.ui.LaunchType$Wip"; //$NON-NLS-1$

}
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.