Examples of IBreakpoint


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

    if(resource == null) {
      return null;
    }
       
    for (int i = 0; i < breakpoints.length; i++) {
      IBreakpoint breakpoint = breakpoints[i];
      if (resource.equals(breakpoint.getMarker().getResource())) {
        if (((ILineBreakpoint) breakpoint).getLineNumber() == lineNumber + 1) {
          return breakpoint;
        }
      }
    }
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());
      for (int i = 0; i < breakpoints.length; i++) {
        IBreakpoint breakpoint = breakpoints[i];
        if (resource.equals(breakpoint.getMarker().getResource())) {
          if (((ILineBreakpoint) breakpoint).getLineNumber() == lineNumber + 1) {
            // remove
            breakpoint.delete();
            return;
          }
        }
      }
View Full Code Here

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

            new Exception("Failed to read debug target label", e)); //$NON-NLS-1$
      }
      return null;
    }
    if (element instanceof IBreakpoint) {
      IBreakpoint breakpoint = (IBreakpoint) element;
      ChromiumExceptionBreakpoint exceptionBreakpoint =
          ChromiumExceptionBreakpoint.tryCastBreakpoint(breakpoint);
      if (exceptionBreakpoint != null) {
        String caughtAddendum;
        if (exceptionBreakpoint.getIncludeCaught()) {
View Full Code Here

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

  public String getEditorId(IEditorInput input, Object element) {
    IFile file;
    if (element instanceof IFile) {
      file = (IFile) element;
    } else if (element instanceof IBreakpoint) {
        IBreakpoint breakpoint = (IBreakpoint) element;
        IResource resource = breakpoint.getMarker().getResource();
        // Can the breakpoint resource be folder or project? Better check for it.
      if (resource instanceof IFile == false) {
        return null;
      }
      file = (IFile) resource;
View Full Code Here

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

    }
    Object element = structuredSelection.getFirstElement();
    if (element instanceof IBreakpoint == false) {
      return null;
    }
    final IBreakpoint breakpoint = (IBreakpoint) element;
    if (!isCorrectType(breakpoint)) {
      return null;
    }

    return new Runnable() {
View Full Code Here

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

      IResource resource = BreakpointUtils.getBreakpointResource(editor);
      IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints();

      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(); // delete existing
            // breakpoint
            return;
          }
        }
      }
View Full Code Here

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

    CamelThread t = getThreadForId(id);
   
    // determine which breakpoint was hit, and set the thread's breakpoint
    IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(ICamelDebugConstants.ID_CAMEL_DEBUG_MODEL);
    for (int i = 0; i < breakpoints.length; i++) {
      IBreakpoint breakpoint = breakpoints[i];
      if (supportsBreakpoint(breakpoint)) {
        if (breakpoint instanceof CamelEndpointBreakpoint) {
          CamelEndpointBreakpoint bp = (CamelEndpointBreakpoint)breakpoint;
          if (bp.getEndpointNodeId().equals(nodeId)) {
            t.setBreakpoints(new IBreakpoint[]{breakpoint});
View Full Code Here

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

            try {
              IFile contextFile = getContextFile();
              String fileName = contextFile.getName();
              String projectName = contextFile.getProject().getName();
             
              IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
              if (bp != null && bp.isEnabled()) {
                bp.setEnabled(false);
              }
            } catch (CoreException e) {
                final IDiagramContainer container = getDiagramBehavior().getDiagramContainer();
                final Shell shell;
                if (container instanceof RiderDesignEditor) {
View Full Code Here

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

          AbstractNode _ep = (AbstractNode) bo;
          IFile contextFile = getContextFile();
          String fileName = contextFile.getName();
          String projectName = contextFile.getProject().getName();
          if (_ep.supportsBreakpoint()) {
            IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
            try {
              return bp != null && bp.isEnabled();
            } catch (CoreException ex) {
              Activator.getLogger().error(ex);
            }
          }
        }
View Full Code Here

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

      // decorate breakpoints on endpoints
      if (getDiagramTypeProvider().getDiagramBehavior().getDiagramContainer() != null && getDiagramTypeProvider().getDiagramBehavior().getDiagramContainer() instanceof RiderDesignEditor) {
        RiderDesignEditor editor = (RiderDesignEditor)getDiagramTypeProvider().getDiagramBehavior().getDiagramContainer();
        IFile activeFile = editor.getCamelContextFile();
        String projectName = activeFile.getProject().getName();
        IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(node.getId(), activeFile.getName(), projectName);
        if (bp != null && bp instanceof CamelEndpointBreakpoint) {
          CamelEndpointBreakpoint cep = (CamelEndpointBreakpoint)bp;

          // we only want to decorate breakpoints which belong to this project
          if (cep.getProjectName().equals(activeFile.getProject().getName())) {
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.