Examples of IBreakpointManager


Examples of org.eclipse.debug.core.IBreakpointManager

{
    public static IBreakpoint lineBreakpointExists(IResource resource, int lineNumber) throws CoreException
    {
        String modelId = PerlDebugPlugin.getUniqueIdentifier();

        IBreakpointManager manager = DebugPlugin.getDefault().getBreakpointManager();
        IBreakpoint[] breakpoints = manager.getBreakpoints(modelId);

        for (int i = 0; i < breakpoints.length; i++)
        {
            PerlLineBreakpoint breakpoint = (PerlLineBreakpoint) breakpoints[i];
            IMarker marker = breakpoint.getMarker();
View Full Code Here

Examples of org.eclipse.debug.core.IBreakpointManager

        return myProjects;
    }

    public static Set<String> addBreakpointProjectsAndModules(
            final Collection<IProject> projects, final List<String> interpretedModules) {
        final IBreakpointManager bpm = DebugPlugin.getDefault().getBreakpointManager();
        final Set<String> result = new HashSet<String>(interpretedModules);
        for (final IBreakpoint bp : bpm
                .getBreakpoints(ErlDebugConstants.ID_ERLANG_DEBUG_MODEL)) {
            final IMarker m = bp.getMarker();
            final IResource r = m.getResource();
            final String name = r.getName();
            if (SourceKind.hasErlExtension(name)) {
View Full Code Here

Examples of org.eclipse.debug.core.IBreakpointManager

            final int line = MarkerUtilities.getLineNumber(marker);
            final int newLine = document.getLineOfOffset(position.getOffset()) + 1;
            if (line == newLine) {
                return true;
            }
            final IBreakpointManager manager = DebugPlugin.getDefault()
                    .getBreakpointManager();
            final IBreakpoint breakpoint = manager.getBreakpoint(marker);
            if (breakpoint == null) {
                return false;
            }
            if (breakpoint instanceof ErlangLineBreakpoint) {
                final ErlangLineBreakpoint erlangLineBreakpoint = (ErlangLineBreakpoint) breakpoint;
View Full Code Here

Examples of org.eclipse.debug.core.IBreakpointManager

     *
     * @since 3.4
     */
    private IErlangBreakpoint lineBreakpointExists(final IResource resource,
            final int lineNumber, final IMarker currentmarker) throws CoreException {
        final IBreakpointManager manager = DebugPlugin.getDefault()
                .getBreakpointManager();
        final IBreakpoint[] breakpoints = manager
                .getBreakpoints(ErlDebugConstants.ID_ERLANG_DEBUG_MODEL);
        final String markerType = currentmarker.getType();
        for (int i = 0; i < breakpoints.length; i++) {
            if (!(breakpoints[i] instanceof IErlangBreakpoint)) {
                continue;
View Full Code Here

Examples of org.eclipse.debug.core.IBreakpointManager

        } catch (final DebugException e1) {
            // can never happen
        }
        if (top instanceof ErlangStackFrame) {
            final ErlangStackFrame topFrame = (ErlangStackFrame) top;
            final IBreakpointManager breakpointManager = DebugPlugin.getDefault()
                    .getBreakpointManager();
            final IBreakpoint[] breakpoints = breakpointManager.getBreakpoints();

            for (final IBreakpoint breakpoint : breakpoints) {
                if (breakpoint instanceof ErlangLineBreakpoint) {
                    final ErlangLineBreakpoint lineBreakpoint = (ErlangLineBreakpoint) breakpoint;
                    try {
View Full Code Here

Examples of org.eclipse.debug.core.IBreakpointManager

      super(HTMLPlugin.getResourceString("JSPEditor.ToggleBreakPoint"));
      setEnabled(true);
    }
   
    public void run(){
      IBreakpointManager manager = DebugPlugin.getDefault().getBreakpointManager();
      IBreakpoint[] breakpoints = manager.getBreakpoints();
      IEditorInput input = getEditorInput();
      IResource resource = (IResource)input.getAdapter(IFile.class);
      if(resource==null){
        resource = (IResource)input.getAdapter(IResource.class);
      }
View Full Code Here

Examples of org.eclipse.debug.core.IBreakpointManager

    }
  }

  private void createBreakpoints(List<Breakpoint> sdkBreakpointsToCreate,
      List<ChromiumLineBreakpoint> uiBreakpointsToCreate, final StatusBuilder statusBuilder) {
    IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager();
    for (Breakpoint sdkBreakpoint : sdkBreakpointsToCreate) {
      Object sourceElement = sourceDirector.getSourceElement(sdkBreakpoint);
      if (sourceElement instanceof IFile == false) {
        statusBuilder.getReportBuilder().addProblem(
            ReportBuilder.Problem.UNRESOLVED_REMOTE_BREAKPOINT,
View Full Code Here

Examples of org.eclipse.debug.core.IBreakpointManager

    return callback.getResult();
  }

  private ChromiumBreakpointsFiltered getUiBreakpoints() {
    IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager();
    final Set<ChromiumLineBreakpoint> lineBreakpoints = new HashSet<ChromiumLineBreakpoint>();
    final List<ChromiumExceptionBreakpoint> exceptionBreakpoints =
        new ArrayList<ChromiumExceptionBreakpoint>(2);

    for (IBreakpoint breakpoint :
        breakpointManager.getBreakpoints(VProjectWorkspaceBridge.DEBUG_MODEL_ID)) {
      {
        ChromiumLineBreakpoint chromiumLineBreakpoint =
            ChromiumBreakpointAdapter.tryCastBreakpoint(breakpoint);
        if (chromiumLineBreakpoint != null) {
          lineBreakpoints.add(chromiumLineBreakpoint);
View Full Code Here

Examples of org.eclipse.debug.core.IBreakpointManager

    initWorkspaceRelations();
  }

  public void initListeners() {
    IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager();
    breakpointManager.addBreakpointListener(debugTargetState.getBreakpointListner());
    breakpointManager.addBreakpointManagerListener(workspaceRelations.getBreakpointHandler());
    workspaceRelations.getBreakpointHandler().initBreakpointManagerListenerState(
        breakpointManager);

    workspaceRelations.startInitialization();
  }
View Full Code Here

Examples of org.eclipse.debug.core.IBreakpointManager

        }
      }
      catch (CoreException x) {
      }
    }
    IBreakpointManager manager = DebugPlugin.getDefault().getBreakpointManager();
    List breakpoints = new ArrayList(markers.size());
    for (int i = 0; i < markers.size(); i++) {
      IBreakpoint breakpoint = manager.getBreakpoint((IMarker) markers.get(i));
      if (breakpoint != null) {
        breakpoints.add(breakpoint);
      }
    }
    return (IBreakpoint[]) breakpoints.toArray(new IBreakpoint[0]);
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.