Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchConfiguration.launch()


    IEditorInput input = editor.getEditorInput();
    if(input instanceof IFileEditorInput){
      try {
        IFile file = ((IFileEditorInput)input).getFile();
        ILaunchConfiguration config = getLaunchConfiguration(file);
        config.launch("run", new NullProgressMonitor());
      } catch(Exception ex){
        HTMLPlugin.logException(ex);
      }
    }
  }
View Full Code Here


      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
        args);
      // saves the new config
      config = wc.doSave();
    }
    ILaunch launch=config.launch(ILaunchManager.RUN_MODE, null);
    config.delete();
    return launch;
  }
  public static void runIJ(IFile currentScript, IProject currentProject) throws CoreException
View Full Code Here

    protected void launch(IErrorReporter plan, String mode) {
      try {
            ILaunchConfiguration config = findLaunchConfiguration();
            if (config != null) {
             config.launch(mode, null);
            }
        } catch (CoreException e) {
            /* Handle exceptions*/
        }
    }
View Full Code Here

          try {
            //ILaunchConfiguration configuration = findConfiguration(resource.getFullPath().toString());
            ILaunchConfiguration configuration = findConfiguration(resource.getProject());

            if(configuration == null) configuration = createConfiguration(resource);
            configuration.launch(mode, null);
          } catch (CoreException e) {
          }
         
          break;
        }
View Full Code Here

    IResource resource = ResourceUtil.getResource(input);
    if(resource.getFileExtension().equals("s3d")){
      ILaunchConfiguration config = findConfiguration(resource.getProject());
      try {
        if(config == null) config = createConfiguration(resource);
        config.launch(mode, null);
      } catch (CoreException e) {
      }
    }
  }
View Full Code Here

        protected IStatus run(IProgressMonitor monitor)
        {
          try
          {
            ILaunchConfiguration vdmLaunchConfig = getVdmLaunchConfig(deDebugPort);
            ILaunch vdmLaunch = vdmLaunchConfig.launch("debug", null);
            launch.addDebugTarget(vdmLaunch.getDebugTarget());
          } catch (CoreException e)
          {
            return new Status(IStatus.ERROR, IDebugConstants.PLUGIN_ID, "Faild to launch VDM-RT debug", e);
          }
View Full Code Here

        try
        {
          launch = LaunchStore.load(file.getContents());
          if (launch != null)
          {
            launch.launch(ILaunchManager.DEBUG_MODE, null);
          }
        } catch (FileNotFoundException e)
        {
          DestecsDebugPlugin.logError("Failed to get relaunch "+file+" file not found", e);
        } catch (IOException e)
View Full Code Here

            configuration = newConfiguration;
        }

        // Launch
        configuration.launch(mode, null);
    }

    /**
     * Returns the location of the SCA contribution representing a Java project.
     * @param javaProject
View Full Code Here

                configuration = newConfiguration;
            }

            // Launch
            configuration.launch(ILaunchManager.RUN_MODE, new SubProgressMonitor(progressMonitor, 20));
           
            if (progressMonitor.isCanceled()) {
                return;
            }
            if (!waitForDomainManager(progressMonitor)) {
View Full Code Here

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

            // Launching the launch configuration
            launch = configuration.launch( ILaunchManager.RUN_MODE, new NullProgressMonitor() );
        }
        catch ( CoreException e )
        {
            ApacheDsPluginUtils.reportError( "An error occurred when launching the server.\n\n" + e.getMessage() );
        }
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.