Package org.eclipse.debug.core

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


      try {
        ILaunchManager mgr = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType type = mgr
                .getLaunchConfigurationType(RutaLaunchConfigurationConstants.ID_RUTA_SCRIPT);

        ILaunchConfigurationWorkingCopy copy = type.newInstance(null, scriptFile.getName()
                + ".Testing");
        // do not use RutaLaunchConstants.ARG_INPUT_FOLDER here
        copy.setAttribute(RutaLaunchConstants.INPUT_FOLDER, inputDirPath);
        // do not use RutaLaunchConstants.ARG_OUTPUT_FOLDER here
        copy.setAttribute(RutaLaunchConstants.OUTPUT_FOLDER, outputDirPath);
View Full Code Here


            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, NLS.bind( Messages
                .getString( "LaunchServerJob.StartingServer" ), new String[] { server.getName() } ) ); //$NON-NLS-1$

            // Setting the JRE container path attribute
            workingCopy.setAttribute( IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, vmInstall
                .getInstallLocation().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

  @SuppressWarnings("unchecked")
  protected ILaunchConfigurationWorkingCopy createLaunch() throws Exception {
    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType launchConfigType = launchManager.getLaunchConfigurationType("org.eclipse.jdt.launching.localJavaApplication");
    ILaunchConfigurationWorkingCopy wc = launchConfigType.newInstance(null, "Test1");

    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "JMX_EXAMPLE");
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "com.example.Main");
    wc.setAttribute("org.eclipse.debug.core.MAPPED_RESOURCE_PATHS",
        new ArrayList(Arrays.asList(new String[] {
View Full Code Here

 
    ConfigurationState state=new ConfigurationState();
    state.setProjectName(testProject.getProject().getName());
    state.setBehaviorClass("paket1.AClassBehaviour");
    state.setBehaviorMethod("shouldAddUp");
    ILaunchConfigurationWorkingCopy wc = configType.newInstance(
        null, lm.generateUniqueLaunchConfigurationNameFrom(state.getName()));

    state.setAttributes(wc);
    ILaunchConfiguration config = wc.doSave();
 
View Full Code Here

  private ILaunchConfiguration createConfiguration(ConfigurationState state) {
    ILaunchConfiguration config= null;
    try {
      ILaunchConfigurationType configType= getJBehaveLaunchConfigType();
      ILaunchConfigurationWorkingCopy wc = configType.newInstance(
          null, DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom(state.getName()));
      state.setAttributes(wc);
      config= wc.doSave();   
    } catch (CoreException ce) {
      JBehavePlugin.log(ce);
View Full Code Here

      try {
        ILaunchManager mgr = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType type = mgr
                .getLaunchConfigurationType(RutaLaunchConfigurationConstants.ID_RUTA_SCRIPT);

        ILaunchConfigurationWorkingCopy copy = type.newInstance(null, scriptFile.getName()
                + ".Testing");
        // do not use RutaLaunchConstants.ARG_INPUT_FOLDER here
        copy.setAttribute(RutaLaunchConstants.INPUT_FOLDER, inputDirPath);
        // do not use RutaLaunchConstants.ARG_OUTPUT_FOLDER here
        copy.setAttribute(RutaLaunchConstants.OUTPUT_FOLDER, outputDirPath);
View Full Code Here

    }
   
    ILaunchConfigurationType type = manager.getLaunchConfigurationType(
        "tk.eclipse.plugin.jseditor.launch.JavaScriptLaunchConfigurationType");
   
    ILaunchConfigurationWorkingCopy wc = type.newInstance(null,
        manager.generateUniqueLaunchConfigurationNameFrom(file.getName()));
   
    wc.setAttribute(JavaScriptLaunchConstants.ATTR_JAVASCRIPT_FILE, fullPath);
   
    try {
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

  }

  private ILaunchConfiguration createConfiguration() throws CoreException {
    ILaunchConfigurationType configType = getWorkbenchLaunchConfigType();
    String computedName = getComputedName(this.planName);
    ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, computedName);
    IProject project = this.plan.getProject();
    setAttributes(wc, project);
    return refreshConfiguration(wc);
  }
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.