Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.IBreakpointManager.removeBreakpoint()


          IBreakpoint[] breakpoints = getBreakpoints(resource, document, model, lineNumber);
          if (breakpoints.length > 0) {
            IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager();
            for (int i = 0; i < breakpoints.length; i++) {
              breakpoints[i].getMarker().delete();
              breakpointManager.removeBreakpoint(breakpoints[i], true);
            }
          }
          else {
            toggler.createBreakpoints(lineNumber + 1);
          }
View Full Code Here


  protected void removeBreakpoints(int lineNumber) {
    IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager();
    IBreakpoint[] breakpoints = getBreakpoints(getMarkers());
    for (int i = 0; i < breakpoints.length; i++) {
      try {
        breakpointManager.removeBreakpoint(breakpoints[i], true);
      }
      catch (CoreException e) {
        Logger.logException(e);
      }
    }
View Full Code Here

        IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager();
        try {
            Iterator<IMarker> e = markers.iterator();
            while (e.hasNext()) {
                IBreakpoint breakpoint = breakpointManager.getBreakpoint(e.next());
                breakpointManager.removeBreakpoint(breakpoint, true);
            }
        } catch (CoreException e) {
            PydevDebugPlugin.log(IStatus.ERROR, "error removing markers", e);
        }
    }
View Full Code Here

        if (fileName.equals(curFileName) || fileName.equals(projectRelPath)) {
          if (lineNum == null ||
              lineNum == -1 ||
              lineNum == ((ILineBreakpoint)breakpoint).getLineNumber())
          {
            breakpointMgr.removeBreakpoint(breakpoint, true);
          }
        }
      }else{
        breakpointMgr.removeBreakpoint(breakpoint, true);
      }
View Full Code Here

          {
            breakpointMgr.removeBreakpoint(breakpoint, true);
          }
        }
      }else{
        breakpointMgr.removeBreakpoint(breakpoint, true);
      }
    }

    return Services.getMessage("debugging.breakpoint.removed");
  }
View Full Code Here

      // breakpoint if the 'delete' option was supplied
      if (fileName != null && lineNum != null &&
          enabled.size() == 1 && commandLine.hasOption("d"))
      {
        action = "removed";
        breakpointMgr.removeBreakpoint(enabled.get(0), true);
      }else{
        for (IBreakpoint breakpoint : enabled){
          breakpoint.setEnabled(false);
        }
      }
View Full Code Here

              if (newFile != null) {
                IMarker createdMarker = newFile
                    .createMarker(markerType);
                createdMarker.setAttributes(breakpoint
                    .getMarker().getAttributes());
                breakpointManager.removeBreakpoint(breakpoint,
                    true);
                breakpoint.setMarker(createdMarker);
                breakpointManager.addBreakpoint(breakpoint);
              } else {
                breakpointManager.removeBreakpoint(breakpoint,
View Full Code Here

                breakpointManager.removeBreakpoint(breakpoint,
                    true);
                breakpoint.setMarker(createdMarker);
                breakpointManager.addBreakpoint(breakpoint);
              } else {
                breakpointManager.removeBreakpoint(breakpoint,
                    true);
              }
            } else {
              if (newFile != null) {
                MarkerUtilities.createMarker(newFile, marker
View Full Code Here

              .getBreakpoint(marker);
          if (breakpoint != null) {
            IMarker createdMarker = file.createMarker(markerType);
            createdMarker.setAttributes(breakpoint.getMarker()
                .getAttributes());
            breakpointManager.removeBreakpoint(breakpoint, true);
            breakpoint.setMarker(createdMarker);
            breakpointManager.addBreakpoint(breakpoint);
          } else {
            MarkerUtilities.createMarker(file,
                marker.getAttributes(), markerType);
View Full Code Here

        if (breakpoints.length > 0) {
          IBreakpointManager breakpointManager = DebugPlugin
              .getDefault().getBreakpointManager();
          for (int i = 0; i < breakpoints.length; i++) {
            breakpoints[i].getMarker().delete();
            breakpointManager
                .removeBreakpoint(breakpoints[i], true);
          }
        } else {
          createBreakpoints(editor, lineNumber + 1);
        }
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.