Examples of doSave()


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

        copy.setAttribute(RutaLaunchConstants.INPUT_FOLDER, inputDirPath);
        // do not use RutaLaunchConstants.ARG_OUTPUT_FOLDER here
        copy.setAttribute(RutaLaunchConstants.OUTPUT_FOLDER, outputDirPath);
        copy.setAttribute(RutaLaunchConstants.ARG_DESCRIPTOR, descriptorAbsolutePath);
        copy.setAttribute(RutaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName());
        ILaunchConfiguration lc = copy.doSave();

        String mode = ILaunchManager.RUN_MODE;
        ILaunch launch = new Launch(lc, mode, null);

        ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();
View Full Code Here

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

        IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER,
        (String) null);
    if (!PDESourcePathProvider.ID.equals(id)) {
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_SOURCE_PATH_PROVIDER,
          PDESourcePathProvider.ID);
      wc.doSave();
    }

    manageLaunch(launch);
  }
View Full Code Here

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

        IResource launchResource = LaunchUtils.getTargetResource(configuration);
        if (launchResource != null) {
            modifiedConfig.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, LaunchUtils.getLaunchProjectName(launchResource));
        }

        return super.getLaunch(modifiedConfig.doSave(), mode);
    }

    @Override
    public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException {
        SubMonitor progress = SubMonitor.convert(monitor, 2);
View Full Code Here

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

            // Indicating that we don't want any console to show up
            workingCopy.setAttribute( DebugPlugin.ATTR_CAPTURE_OUTPUT, false );

            // Saving the launch configuration
            ILaunchConfiguration configuration = workingCopy.doSave();

            // Launching the launch configuration
            launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );
        }
        catch ( CoreException e )
View Full Code Here

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

      wc.setAttribute(
        LaunchConstants.ATTR_PROGRAM_PATH,
        launchable.getProjectRelativePath().toPortableString());
     
      wc.setMappedResources(new IResource[] { launchable });
      config = wc.doSave();
    } catch (CoreException ce) {
      LangCore.logStatus(ce);
    }
    return config;
  }
View Full Code Here

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

            try {
                ILaunchConfigurationWorkingCopy workingCopy = conf.copy(conf.getName());
                workingCopy.setAttribute(GrinderConstants.ATTR_GRINDER_PROPERTIES_LOCATION,
                                location);
                conf.delete();
                conf = workingCopy.doSave();
            } catch (CoreException e) {
                reportError("The grinder.properties cannot be set for a run.", e);
            }
        }
View Full Code Here

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

    state.setBehaviorMethod("shouldAddUp");
    ILaunchConfigurationWorkingCopy wc = configType.newInstance(
        null, lm.generateUniqueLaunchConfigurationNameFrom(state.getName()));

    state.setAttributes(wc);
    ILaunchConfiguration config = wc.doSave();
 
    IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
    final TextConsole[] console=new TextConsole[1];       
    manager.addConsoleListener(new IConsoleListener(){
      public void consolesAdded(IConsole[] consoles) {
View Full Code Here

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

    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);
    }
    return config;
  }
View Full Code Here

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

        copy.setAttribute(RutaLaunchConstants.INPUT_FOLDER, inputDirPath);
        // do not use RutaLaunchConstants.ARG_OUTPUT_FOLDER here
        copy.setAttribute(RutaLaunchConstants.OUTPUT_FOLDER, outputDirPath);
        copy.setAttribute(RutaLaunchConstants.ARG_DESCRIPTOR, descriptorAbsolutePath);
        copy.setAttribute(RutaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName());
        ILaunchConfiguration lc = copy.doSave();

        String mode = ILaunchManager.RUN_MODE;
        ILaunch launch = new Launch(lc, mode, null);

        ILaunchConfiguration launchConfiguration = launch.getLaunchConfiguration();
View Full Code Here

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

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

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