Package org.eclipse.debug.core

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


               
                // Pass the runtime classpath as a system property
                newConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, "\"-DTUSCANY_PATH=" + ClasspathUtil.installedRuntimeClasspath() + "\"");

                // Save the configuration
                newConfiguration.doSave();

                configuration = newConfiguration;
            }

            // Launch
View Full Code Here


            // 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

        try {
          ILaunchConfigurationWorkingCopy workingcopy = getWorkingCopy();

          workingcopy.setAttribute(getNonCheckedAttributeName(),
              checked);
          workingcopy.doSave();
        } catch (CoreException e) {
          logger.severe("CheckStateChangedEvent - exception: " + e);
        }
      }
    });
View Full Code Here

      workCopy.setAttribute(
          ILaunchConfiguration.ATTR_SOURCE_LOCATOR_MEMENTO,
          sourceDir.getMemento());

      workCopy.doSave();
    } catch (Exception e) {
      // something wrong, skip add sources
    }
  }
View Full Code Here

            // Pass the runtime classpath as a system property
            newConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, "\"-DTUSCANY_PATH=" + RuntimeClasspathContainerInitializerExtensionPoint.installedRuntimeClasspath() + "\"");

            // Save the configuration
            newConfiguration.doSave();

            configuration = newConfiguration;
        }

        // Launch
View Full Code Here

               
                // Pass the runtime classpath as a system property
                newConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, "\"-DTUSCANY_PATH=" + RuntimeClasspathContainerInitializerExtensionPoint.installedRuntimeClasspath() + "\"");

                // Save the configuration
                newConfiguration.doSave();

                configuration = newConfiguration;
            }

            // Launch
View Full Code Here

                applicationProjectName);
            workingLaunchConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
                applicationTypeName);
            workingLaunchConfiguration.setMappedResources(new IResource[] {type.getUnderlyingResource()});

            launchConfiguration = workingLaunchConfiguration.doSave();
        } catch (CoreException exception) {
            MessageDialog.openError(PivotPlugin.getActiveWorkbenchShell(),
                exception.getMessage(),
                exception.getStatus().getMessage());
        }
View Full Code Here

                fileProjectName);
            workingLaunchConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
                getProgramArguments(file));
            workingLaunchConfiguration.setMappedResources(new IResource[] {file});

            launchConfiguration = workingLaunchConfiguration.doSave();
        } catch (CoreException exception) {
            MessageDialog.openError(PivotPlugin.getActiveWorkbenchShell(),
                exception.getMessage(),
                exception.getStatus().getMessage());
        }
View Full Code Here

    try {
     
      // Only save if some configuration is different.
      if(!iConfWC.contentsEqual(iConf))
        iConfWC.doSave();

    } catch (CoreException e) {
      e.printStackTrace();
      // FIXME Error dialog
      return null;
View Full Code Here

          configChanges.put(IDebugUIConstants.ATTR_CAPTURE_IN_FILE, config.getAttribute(IDebugUIConstants.ATTR_CAPTURE_IN_FILE, (String)null));
         
          ILaunchConfigurationWorkingCopy configwc = config.getWorkingCopy();
          configwc.setAttribute(IDebugUIConstants.ATTR_APPEND_TO_FILE, true);
          configwc.setAttribute(IDebugUIConstants.ATTR_CAPTURE_IN_FILE, logFile.getAbsolutePath());
          configwc.doSave();
        }
      }
    }
    return modifications;
  }
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.