Package org.eclipse.debug.core

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


    ILaunchConfigurationWorkingCopy wc = null;
    try {
      int jmxPort = (int) (5000 + Math.random()*60000); //TODO: better way to pick this port?
      ILaunchConfigurationType configType = getConfigurationType();
      String projectName = type.getJavaProject().getElementName();
      wc = configType.newInstance(null, projectName+" - "+getLaunchManager().generateLaunchConfigurationName(
          type.getTypeQualifiedName('.')));
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, type.getFullyQualifiedName());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, projectName);
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, liveBeanVmArgs(jmxPort));
      wc.setMappedResources(new IResource[] {type.getUnderlyingResource()});
View Full Code Here


    try {
      ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
      ILaunchConfigurationType launchConfigurationType = launchManager
          .getLaunchConfigurationType(MavenLaunchConstants.LAUNCH_CONFIGURATION_TYPE_ID);

      ILaunchConfigurationWorkingCopy workingCopy = launchConfigurationType.newInstance(basedir, //
          "Updating Maven dependencies for '" + basedir.getName() + "'");
      workingCopy.setAttribute(MavenLaunchConstants.ATTR_POM_DIR, basedir.getLocation().toOSString());
      workingCopy.setAttribute(MavenLaunchConstants.ATTR_GOALS, goal);
      workingCopy.setAttribute(MavenLaunchConstants.ATTR_WORKSPACE_RESOLUTION, true);
View Full Code Here

            cfg.delete();
          }
        }
      }

      ILaunchConfigurationWorkingCopy cfg = type.newInstance( null, name );
      cfg.setAttribute( IExternalToolConstants.ATTR_LOCATION, buildFile.getAbsolutePath() );
      cfg.setAttribute( IExternalToolConstants.ATTR_WORKING_DIRECTORY, buildFile.getParentFile().getAbsolutePath() );
      cfg.setAttribute( "org.eclipse.debug.core.ATTR_REFRESH_SCOPE", "${project}" );
      cfg.setAttribute( IAntLaunchConstants.ATTR_DEFAULT_VM_INSTALL, false );
      cfg.setAttribute( "org.eclipse.jdt.launching.MAIN_TYPE", "org.eclipse.ant.internal.launching.remote.InternalAntRunner" );
View Full Code Here

    if (project == null) return null;
    SketchProject sketch = SketchProject.forProject(project);
    ILaunchConfiguration config = null;
    try{
      ILaunchConfigurationType configType = getConfigurationType();
      ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, project.getName());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, sketch.getMainType());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_WIDTH, sketch.getWidth());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_HEIGHT, sketch.getHeight());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_NAME, "Processing Sketch");
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.