Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.ILaunchManager


  public void generate() throws CoreException {
    GrammarResource grammarResource = createMock(GrammarResource.class);
    IFile file = createMock(IFile.class);
    ToolOptionsProvider optionsProvider = createMock(ToolOptionsProvider.class);
    ToolOptions options = createMock(ToolOptions.class);
    ILaunchManager launchManager = createMock(ILaunchManager.class);
    CodeGeneratorListener listener = createMock(CodeGeneratorListener.class);
    Set<CodeGeneratorListener> listeners = newHashSet(listener);
    ToolRunner toolRunner = createMock(ToolRunner.class);
    Console console = createMock(Console.class);
View Full Code Here


  public void configure() {
    Binder binder = createNiceMock(Binder.class);
    AnnotatedBindingBuilder<LangFactory> bindLangFactory = createMock(AnnotatedBindingBuilder.class);
    AnnotatedBindingBuilder<ILinkingDiagnosticMessageProvider.Extended> bindLinkingDMP = createMock(AnnotatedBindingBuilder.class);
    AnnotatedBindingBuilder<ILaunchManager> bindLaunchManager = createMock(AnnotatedBindingBuilder.class);
    final ILaunchManager launchManager = createMock(ILaunchManager.class);

    expect(binder.bind(LangFactory.class)).andReturn(bindLangFactory);
    expect(binder.bind(ILinkingDiagnosticMessageProvider.Extended.class)).andReturn(bindLinkingDMP);
    expect(binder.bind(ILaunchManager.class)).andReturn(bindLaunchManager);
View Full Code Here

     * @param mode
     */
    private void launchFile(IFile file, String mode) throws CoreException {
        // check for an existing launch config for the file
        String path = file.getFullPath().toString();
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType type = launchManager.getLaunchConfigurationType(Constants.LAUNCH_CONFIGURATION_TYPE_ID);
        ILaunchConfiguration configuration = createLaunchConfiguration(type, path, file);
        DebugUITools.launch(configuration, mode);
        // then execution goes in LaunchConfigurationDelegate.java launch() method
    }
View Full Code Here

    });
       
  }
 
  public static void deleteConfig() {
    ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType type = manager.getLaunchConfigurationType(LAUNCH_CONFIGURATION_TYPE_ID);
   
    try {
      ILaunchConfiguration[] confs = manager.getLaunchConfigurations(type);
      for(ILaunchConfiguration conf : confs) {
        if(CONFIG_NAME.equals(conf.getName())) {
          conf.delete();
        }
      }
View Full Code Here

     * @param mode
     */
    private void launchFile(IFile file, String mode) throws CoreException {
        // check for an existing launch config for the file
        String path = file.getFullPath().toString();
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType type = launchManager.getLaunchConfigurationType(getLaunchConfigurationTypeConstant());
        ILaunchConfiguration configuration = createLaunchConfiguration(type, path, file);
        DebugUITools.launch(configuration, mode);
        // then execution goes in LaunchConfigurationDelegate.java launch() method
    }
View Full Code Here

     * @param mode
     */
    public void launchFile(IFile file, String mode) throws CoreException {
        // check for an existing launch config for the file
        String path = file.getFullPath().toString();
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType type = launchManager.getLaunchConfigurationType(Constants.NPM_LAUNCH_CONFIGURATION_TYPE_ID);
        ILaunchConfiguration configuration = createLaunchConfiguration(type, path, file);
        String goalString = null;
        goalString = configuration.getAttribute(Constants.KEY_GOAL, Constants.BLANK_STRING);
        if (Constants.BLANK_STRING.equals(goalString)) {
            Shell shell = Activator.getActiveWorkbenchShell();
View Full Code Here

     * @param mode
     */
    public void launchFile(IFile file, String mode) throws CoreException {
        // check for an existing launch config for the file
        String path = file.getFullPath().toString();
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType type = launchManager.getLaunchConfigurationType(Constants.NPM_LAUNCH_CONFIGURATION_TYPE_ID);
        ILaunchConfiguration configuration = createLaunchConfiguration(type, path, file);
        String goalString = null;
        goalString = configuration.getAttribute(Constants.KEY_GOAL, Constants.BLANK_STRING);
        if (Constants.BLANK_STRING.equals(goalString)) {
            Shell shell = Activator.getActiveWorkbenchShell();
View Full Code Here

     * @param mode
     */
    private void launchFile(IFile file, String mode) throws CoreException {
        // check for an existing launch config for the file
        String path = file.getFullPath().toString();
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType type = launchManager.getLaunchConfigurationType(getLaunchConfigurationTypeConstant());
        ILaunchConfiguration configuration = createLaunchConfiguration(type, path, file);
        DebugUITools.launch(configuration, mode);
        // then execution goes in LaunchConfigurationDelegate.java launch() method
    }
View Full Code Here

     * @param mode
     */
    private void launchFile(IFile file, String mode) throws CoreException {
        // check for an existing launch config for the file
        String path = file.getFullPath().toString();
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType type = launchManager.getLaunchConfigurationType(VertxConstants.LAUNCH_CONFIGURATION_TYPE_ID);
        ILaunchConfiguration configuration = createLaunchConfiguration(type, path, file);
        DebugUITools.launch(configuration, mode);
        // then execution goes in LaunchConfigurationDelegate.java launch() method
    }
View Full Code Here

      }
      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

Related Classes of org.eclipse.debug.core.ILaunchManager

Copyright © 2018 www.massapicom. 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.