Examples of ILaunchConfigurationType


Examples of org.eclipse.debug.core.ILaunchConfigurationType

              project);
      String descriptorAbsolutePath = descriptorPath.toFile().getAbsolutePath();

      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

Examples of org.eclipse.debug.core.ILaunchConfigurationType

        {
            // Getting the default VM installation
            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

Examples of org.eclipse.debug.core.ILaunchConfigurationType

 
  protected ILaunchConfiguration createConfiguration(IResource launchable) {
    ILaunchConfiguration config = null;
    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

Examples of org.eclipse.debug.core.ILaunchConfigurationType

  }

  @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

Examples of org.eclipse.debug.core.ILaunchConfigurationType

    Platform.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD, null);

    IMarker[] markers = workspace.getRoot().findMarkers(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_INFINITE);
    assertEquals(0, markers.length);
    ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType configType = lm.getLaunchConfigurationType(JBehaveLaunchConfiguration.ID_JBEHAVE_APPLICATION)
 
    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

Examples of org.eclipse.debug.core.ILaunchConfigurationType

    }
    launchConfiguration(mode, config);
  }
 
  private ILaunchConfiguration findLaunchConfiguration(String mode, ConfigurationState state, String container, String name) throws LaunchCancelledByUserException {
    ILaunchConfigurationType configType= getJBehaveLaunchConfigType();
    List candidateConfigs = new ArrayList();
    try {
      ILaunchConfiguration[] configs= DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations(configType);
      candidateConfigs = new ArrayList(configs.length);
      for (int i= 0; i < configs.length; i++) {
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchConfigurationType

 

  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

Examples of org.eclipse.debug.core.ILaunchConfigurationType

              project);
      String descriptorAbsolutePath = descriptorPath.toFile().getAbsolutePath();

      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

Examples of org.eclipse.debug.core.ILaunchConfigurationType

      if(value.equals(fullPath)){
        return configs[i];
      }
    }
   
    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

Examples of org.eclipse.debug.core.ILaunchConfigurationType

                    try {
                        progressMonitor.beginTask("Starting SCA Composite", 100);
                       
                        // Get our launch configuration type
                        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
                        ILaunchConfigurationType launchConfigurationType =launchManager.getLaunchConfigurationType(
                                                                                                       "org.apache.tuscany.sca.core.launch.configurationtype");
                        progressMonitor.worked(10);
                        if (progressMonitor.isCanceled()) {
                            return;
                        }
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.