Examples of IBreakpoint


Examples of org.eclipse.debug.core.model.IBreakpoint

  }

  // Breakpoint test "template".
  private void runSimpleBkpTest(final SimpleBkpTestData data)
      throws Throwable {
    IBreakpoint jsBkp = getHelper().ensureBreakpoint(data._bkpFile,
        data._bkpLine);
    IThread thread = getHelper().launchToBreakpoint(jsBkp,
        "Breakpoints", true); //$NON-NLS-1$

    getHelper().verifyThreadState(thread, data._bkpLine, data._stackLength,
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

      IResource resource = (IResource) textEditor.getEditorInput().getAdapter(IResource.class);
      ITextSelection textSelection = (ITextSelection) selection;
      int lineNumber = textSelection.getStartLine() + 1;
      IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(IXVRConstants.ID_XVR_DEBUG_MODEL);
      for (int i = 0; i < breakpoints.length; i++) {
        IBreakpoint breakpoint = breakpoints[i];
        if (resource.equals(breakpoint.getMarker().getResource())) {
          if (((ILineBreakpoint) breakpoint).getLineNumber() == (lineNumber)) {
            breakpoint.delete();
            return;
          }
        }
      }
      XVRBreakpoint lineBreakpoint = new XVRBreakpoint(resource, lineNumber);
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

      }
    }
    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

Examples of org.eclipse.debug.core.model.IBreakpoint

  public void update() {
    // doEnable means "enable" instead of "disable"
    doEnable = true;
    breakpoints = getBreakpoints(getMarkers());
    for (int i = 0; doEnable && i < breakpoints.length; i++) {
      IBreakpoint breakpoint = breakpoints[i];
      try {
        if (breakpoint.isEnabled()) {
          doEnable = false;
        }
      } catch (CoreException e) {
        Logger.logException("breakpoint not responding to isEnabled: " + breakpoint, e); //$NON-NLS-1$
      }
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

  protected IBreakpoint[] getBreakpoints(IMarker[] markers) {
    IBreakpointManager manager = DebugPlugin.getDefault().getBreakpointManager();
    List breakpoints = new ArrayList(markers.length);
    for (int i = 0; i < markers.length; i++) {
      IBreakpoint breakpoint = manager.getBreakpoint(markers[i]);
      if (breakpoint != null) {
        breakpoints.add(breakpoint);
      }
    }
    return (IBreakpoint[]) breakpoints.toArray(new IBreakpoint[0]);
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

    IStatus status = null;
    if (pos >= 0) {
      IResource res = getResourceFromInput(input);
      if (res != null) {
        String path = null;
        IBreakpoint point = JDIDebugModel.createStratumBreakpoint(res, "JSP", res.getName(), path, getClassPattern(res), editorLineNumber, pos, pos, 0, true, null); //$NON-NLS-1$
        if (point == null) {
          status = new Status(IStatus.ERROR, JSPUIPlugin.ID, IStatus.ERROR, "unsupported input type", null); //$NON-NLS-1$
        }
      }
      else if (input instanceof IStorageEditorInput) {
        // For non-resources, use the workspace root and a coordinated
        // attribute that is used to
        // prevent unwanted (breakpoint) markers from being loaded
        // into the editors.
        res = ResourcesPlugin.getWorkspace().getRoot();
        String id = input.getName();
        if (input instanceof IStorageEditorInput && ((IStorageEditorInput) input).getStorage() != null && ((IStorageEditorInput) input).getStorage().getFullPath() != null) {
          id = ((IStorageEditorInput) input).getStorage().getFullPath().toString();
        }
        Map attributes = new HashMap();
        attributes.put(StructuredResourceMarkerAnnotationModel.SECONDARY_ID_KEY, id);
        String path = null;
        IBreakpoint point = JDIDebugModel.createStratumBreakpoint(res, "JSP", input.getName(), path, getClassPattern(res), editorLineNumber, pos, pos, 0, true, attributes); //$NON-NLS-1$
        if (point == null) {
          status = new Status(IStatus.ERROR, JSPUIPlugin.ID, IStatus.ERROR, "unsupported input type", null); //$NON-NLS-1$
        }
      }
    }
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

  protected IBreakpoint[] getBreakpoints(IMarker[] markers) {
    IBreakpointManager manager = DebugPlugin.getDefault().getBreakpointManager();
    List breakpoints = new ArrayList(markers.length);
    for (int i = 0; i < markers.length; i++) {
      IBreakpoint breakpoint = manager.getBreakpoint(markers[i]);
      if (breakpoint != null) {
        breakpoints.add(breakpoint);
      }
    }
    return (IBreakpoint[]) breakpoints.toArray(new IBreakpoint[0]);
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

            IResource resource = (IResource) editor.getEditorInput().getAdapter(IResource.class);
            ITextSelection textSelection = (ITextSelection) selection;
            int lineNumber = textSelection.getStartLine();
            IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(IDroolsDebugConstants.ID_DROOLS_DEBUG_MODEL);
            for (int i = 0; i < breakpoints.length; i++) {
                IBreakpoint breakpoint = breakpoints[i];
                if (resource.equals(breakpoint.getMarker().getResource())) {
                    if (breakpoint.getMarker().getType().equals(IDroolsDebugConstants.DROOLS_MARKER_TYPE)) {
                        if (((DroolsLineBreakpoint) breakpoint).getDRLLineNumber() == (lineNumber + 1)) {
                            breakpoint.delete();
                            return;
                        }
                    }
                }
            }
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

            IResource resource = (IResource) editor.getEditorInput().getAdapter(IResource.class);
            ITextSelection textSelection = (ITextSelection) selection;
            int lineNumber = textSelection.getStartLine();
            IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(IDroolsDebugConstants.ID_DROOLS_DEBUG_MODEL);
            for (int i = 0; i < breakpoints.length; i++) {
                IBreakpoint breakpoint = breakpoints[i];
                if (resource.equals(breakpoint.getMarker().getResource())) {
                    if (breakpoint.getMarker().getType().equals(IDroolsDebugConstants.DROOLS_MARKER_TYPE)) {
                        if (((DroolsLineBreakpoint) breakpoint).getDRLLineNumber() == (lineNumber + 1)) {
                            breakpoint.delete();
                            return;
                        }
                    }
                }
            }
View Full Code Here

Examples of org.eclipse.debug.core.model.IBreakpoint

     
      ITextSelection textSelection = (ITextSelection) selection;
      int lineNumber = textSelection.getStartLine();
      IBreakpoint[] breakpoints = DebugPlugin.getDefault()
          .getBreakpointManager().getBreakpoints(getDebugModelId());
      IBreakpoint breakpoint = findBreakpoint(breakpoints, resource, lineNumber);
      if(breakpoint != null) {
        breakpoint.delete();
        breakpoint = findBreakpoint(breakpoints, res2, lineNumber);
        if(breakpoint != null) {
          breakpoint.delete();
        }
        return;
      }
     
      addBreakpoint(resource, lineNumber);
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.