Examples of ILaunchManager


Examples of org.eclipse.debug.core.ILaunchManager

    workspace.run(runnable,null);
    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();
 
    IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

  /**
   * Returns the local java launch config type
   * @return ILaunchConfigurationType
   */
  private ILaunchConfigurationType getJBehaveLaunchConfigType() {
    ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
    return lm.getLaunchConfigurationType(
        JBehaveLaunchConfiguration.ID_JBEHAVE_APPLICATION);   
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

      IPath descriptorPath = RutaProjectUtils.getEngineDescriptorPath(scriptFile.getLocation(),
              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
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

      }
    }
  }
 
  private ILaunchConfiguration getLaunchConfiguration(IFile file) throws CoreException {
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
   
    ILaunchConfiguration[] configs = manager.getLaunchConfigurations();
    String fullPath = file.getLocation().toFile().getAbsolutePath();
   
    for(int i=0;i<configs.length;i++){
      String value = configs[i].getAttribute(JavaScriptLaunchConstants.ATTR_JAVASCRIPT_FILE, "");
      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 {
      HTMLProjectParams params = new HTMLProjectParams(file.getProject());
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

                public void run(IProgressMonitor progressMonitor) throws InvocationTargetException, InterruptedException {
                    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

Examples of org.eclipse.debug.core.ILaunchManager

      throw e;
    }
   
  }
  protected static ILaunch launch(IProject proj, String name, String mainClass, String args, String vmargs, String app) throws CoreException
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
 
    ILaunchConfigurationType type=null;
    if(app.equalsIgnoreCase(CommonNames.START_DERBY_SERVER)){
      //type= manager.getLaunchConfigurationType("org.apache.derby.ui.startDerbyServerLaunchConfigurationType");
      type= manager.getLaunchConfigurationType(CommonNames.START_SERVER_LAUNCH_CONFIG_TYPE);
    }else if(app.equalsIgnoreCase(CommonNames.SHUTDOWN_DERBY_SERVER)){
      //type= manager.getLaunchConfigurationType("org.apache.derby.ui.stopDerbyServerLaunchConfigurationType");
      type= manager.getLaunchConfigurationType(CommonNames.STOP_SERVER_LAUNCH_CONFIG_TYPE);
    }else if(app.equalsIgnoreCase(CommonNames.IJ)){
      //type= manager.getLaunchConfigurationType("org.apache.derby.ui.ijDerbyLaunchConfigurationType");
      type= manager.getLaunchConfigurationType(CommonNames.IJ_LAUNCH_CONFIG_TYPE);
    }else if(app.equalsIgnoreCase(CommonNames.SYSINFO)){
      //type= manager.getLaunchConfigurationType("org.apache.derby.ui.sysinfoDerbyLaunchConfigurationType");
      type= manager.getLaunchConfigurationType(CommonNames.SYSINFO_LAUNCH_CONFIG_TYPE);
    }else{
      type = manager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
    }
    ILaunchConfiguration config = null;
    // if the configuration already exists, delete it
    ILaunchConfiguration[] configurations = manager.getLaunchConfigurations(type);
    for (int i = 0; i < configurations.length; i++) {
      if (configurations[i].getName().equals(name))
        configurations[i].delete();
    }
    // else create a new one
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

    wc.setAttribute(IToolLaunchConstants.PROJECT_NAME, projectName);
  }
   
  private ILaunchConfiguration[] getLaunchConfigurations() throws CoreException {
    ArrayList<ILaunchConfiguration> result = new ArrayList<ILaunchConfiguration>();
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType type = manager.getLaunchConfigurationType(EclipseLaunchShortcut.CONFIGURATION_TYPE);
    ILaunchConfiguration[] configs = manager.getLaunchConfigurations(type);
    for (int i = 0; i < configs.length; i++) {
      if (!DebugUITools.isPrivate(configs[i])) {
        String foundName = configs[i].getAttribute(IToolLaunchConstants.PLAN_NAME, ""); //$NON-NLS-1$
        if (this.planName.equalsIgnoreCase(foundName)) {
          result.add(configs[i]);
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

    setAttributes(wc, project);
    return refreshConfiguration(wc);
  }

  private String getComputedName(String prefix) {
    ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
    return lm.generateUniqueLaunchConfigurationNameFrom(prefix);
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

  private String getComputedName(String prefix) {
    ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
    return lm.generateUniqueLaunchConfigurationNameFrom(prefix);
  }
  protected ILaunchConfigurationType getWorkbenchLaunchConfigType() {
    ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
    return lm.getLaunchConfigurationType("tool.launching.localLaunch");
  }
View Full Code Here

Examples of org.eclipse.debug.core.ILaunchManager

      }
      String type = config.getAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_ID, (String)null);
      if (type == null) {
        type = config.getType().getSourceLocatorId();
      }
      ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
      ISourceLocator locator = launchManager.newSourceLocator(type);
      if (locator instanceof IPersistableSourceLocator2 == false) {
        return null;
      }
      ISourceLookupDirector director = (ISourceLookupDirector) locator;
      director.initializeFromMemento(memento, config);
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.