Examples of DebugPlugin


Examples of org.eclipse.debug.core.DebugPlugin

  public void launch(final ILaunchConfiguration configuration, final String mode, final ILaunch launch, final IProgressMonitor monitor) {
    try {
      String _refreshScope = RefreshTab.getRefreshScope(configuration);
      boolean _notEquals = (!Objects.equal(_refreshScope, null));
      if (_notEquals) {
        DebugPlugin _default = DebugPlugin.getDefault();
        final IDebugEventSetListener _function = new IDebugEventSetListener() {
          public void handleDebugEvents(final DebugEvent[] it) {
            for (final DebugEvent event : it) {
              boolean _and = false;
              Object _source = event.getSource();
              if (!(_source instanceof IProcess)) {
                _and = false;
              } else {
                int _kind = event.getKind();
                boolean _equals = (_kind == DebugEvent.TERMINATE);
                _and = _equals;
              }
              if (_and) {
                Object _source_1 = event.getSource();
                final IProcess process = ((IProcess) _source_1);
                ILaunch _launch = process.getLaunch();
                ILaunchConfiguration _launchConfiguration = _launch.getLaunchConfiguration();
                boolean _equals_1 = Objects.equal(configuration, _launchConfiguration);
                if (_equals_1) {
                  DebugPlugin _default = DebugPlugin.getDefault();
                  _default.removeDebugEventListener(this);
                  RefreshJob _refreshJob = new RefreshJob(configuration);
                  _refreshJob.schedule();
                  return;
                }
              }
            }
          }
        };
        _default.addDebugEventListener(_function);
      }
      super.launch(configuration, mode, launch, monitor);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

   * Fires a debug event
   *
   * @param event to be fired
   */
  public static void fireDebugEvent(DebugEvent event) {
    DebugPlugin debugPlugin = DebugPlugin.getDefault();
    if (debugPlugin != null) {
      debugPlugin.fireDebugEventSet(new DebugEvent[] { event });
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

  private void fireCreationEvent() {
    fireEvent(new DebugEvent(this, DebugEvent.CREATE));
  }

  private void fireEvent(DebugEvent event) {
    DebugPlugin manager = DebugPlugin.getDefault();
    if (manager != null) {
      manager.fireDebugEventSet(new DebugEvent[] { event });
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

        }
        throw new RuntimeException("LaunchShortcut not found. namespace:" + namespace); //$NON-NLS-1$
    }

    private static ILaunchConfigurationWorkingCopy createWorkingCopy(final String namespace, IJavaProject project)throws CoreException {
      DebugPlugin debugPlugin = DebugPlugin.getDefault();
    ILaunchManager launchManager = debugPlugin.getLaunchManager();
    ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType(namespace);
    ILaunchConfigurationWorkingCopy launchConfiguration = launchConfigurationType.newInstance(null, defaultName(project));
      if(launchConfiguration == null){
        throw new RuntimeException("LaunchConfigurationTypes not found. namespace:" + namespace); //$NON-NLS-1$
      }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

    /**
     * @return true if all the breakpoints should be skipped. Patch from bug:
     * http://sourceforge.net/tracker/index.php?func=detail&aid=1960983&group_id=85796&atid=577329
     */
    private boolean shouldSkipBreakpoints() {
        DebugPlugin manager = DebugPlugin.getDefault();
        return manager != null && !manager.getBreakpointManager().isEnabled();
    }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

                    "\npayload: " + payload, e);
        }
    }

    public void fireEvent(DebugEvent event) {
        DebugPlugin manager = DebugPlugin.getDefault();
        if (manager != null) {
            manager.fireDebugEventSet(new DebugEvent[] { event });
        }
    }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

        return env;
    }

    private static String[] createEnvWithPythonpath(String pythonPathEnvStr, IPythonNature nature,
            IInterpreterManager manager) throws CoreException {
        DebugPlugin defaultPlugin = DebugPlugin.getDefault();
        if (defaultPlugin != null) {
            Map<String, String> env = getDefaultSystemEnv(defaultPlugin, nature); //no need to remove as it'll be updated       

            env.put("PYTHONPATH", pythonPathEnvStr); //put the environment
            switch (manager.getInterpreterType()) {
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

    /**
     * @return a map with the env variables for the system 
     */
    public static Map<String, String> getDefaultSystemEnv(IPythonNature nature) throws CoreException {
        DebugPlugin defaultPlugin = DebugPlugin.getDefault();
        return getDefaultSystemEnv(defaultPlugin, nature);
    }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

   *
   * @param event
   *            debug event to fire
   */
  protected void fireEvent(DebugEvent event) {
    DebugPlugin manager = DebugPlugin.getDefault();
    if (manager != null) {
      manager.fireDebugEventSet(new DebugEvent[] { event });
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.DebugPlugin

 
  /**
   * Dispose adapter sets for all launches.
   */
  private void disposeAdapterSets() {
      DebugPlugin debugPlugin = DebugPlugin.getDefault();
      // This can happen in certain cases where this DebugUI plugin was activated programatically,
      // but Eclipse's DebugPlugin was never activated because it was never used.
      if(debugPlugin == null) return;
     
    for (ILaunch launch : debugPlugin.getLaunchManager().getLaunches()) {
          if (launch instanceof GdbLaunch) {
              GdbAdapterFactory.disposeAdapterSet(launch);
          }
      }
  }
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.