Package org.openbp.core.engine.debugger

Examples of org.openbp.core.engine.debugger.Breakpoint


        }

        // First, check if we ran onto a breakpoint set by this client
        if (pos1 != null)
        {
          Breakpoint bp = client.getActiveBreakpoint(pos1);
          if (bp != null)
          {
            breakClient = client;

            if ((bp.getState() & Breakpoint.STATE_TEMPORARY) != 0)
            {
              // Clear temporary breakpoint
              client.clearBreakpoint(pos1);
            }
          }
        }

        if (breakClient == null && pos2 != null)
        {
          Breakpoint bp = client.getActiveBreakpoint(pos2);
          if (bp != null)
          {
            breakClient = client;

            if ((bp.getState() & Breakpoint.STATE_TEMPORARY) != 0)
            {
              // Clear temporary breakpoint
              client.clearBreakpoint(pos2);
            }
          }
View Full Code Here


  private DebuggerClient determineGlobalBreakpointClient(ModelQualifier qualifier)
  {
    for (Iterator it = clients.values().iterator(); it.hasNext();)
    {
      DebuggerClient client = (DebuggerClient) it.next();
      Breakpoint bp = client.getActiveGlobalBreakpoint(qualifier);
      if (bp != null)
        return client;
    }
    return null;
  }
View Full Code Here

   * @param qualifier Reference to a node or a node socket
   * @return The breakpoint or null if no such breakpoint exists or the breakpoint is disabled
   */
  public Breakpoint getActiveBreakpoint(ModelQualifier qualifier)
  {
    Breakpoint bp = (Breakpoint) breakpoints.get(qualifier);
    if (bp != null)
    {
      if (bp.isEnabled())
        return bp;
    }
    return null;
  }
View Full Code Here

   * @param qualifier Reference to a node or a node socket
   * @return The breakpoint or null if no such breakpoint exists or the breakpoint is disabled
   */
  public Breakpoint getActiveGlobalBreakpoint(ModelQualifier qualifier)
  {
    Breakpoint bp = (Breakpoint) breakpoints.get(qualifier);
    if (bp != null)
    {
      int state = bp.getState();
      if ((state & Breakpoint.STATE_DISABLED) != 0 && (state & Breakpoint.STATE_GLOBAL) != 0)
        return bp;
    }
    return null;
  }
View Full Code Here

   * @throws OpenBPException If the client id is invalid
   * or if the process has been halted by another client
   */
  public void setBreakpoint(ModelQualifier qualifier, int state)
  {
    Breakpoint bp = (Breakpoint) breakpoints.get(qualifier);
    if (bp != null)
    {
      // Existing breakpoints can't be temporary
      state &= ~ Breakpoint.STATE_TEMPORARY;

      bp.setState(state);
    }
    else
    {
      bp = new Breakpoint(qualifier, state);
      breakpoints.put(qualifier, bp);
    }
  }
View Full Code Here

    List list = new ArrayList();

    for (Iterator it = breakpoints.values().iterator(); it.hasNext();)
    {
      Breakpoint bp = (Breakpoint) it.next();
      list.add(bp);
    }

    return list;
  }
View Full Code Here

  public void updateBreakpoints(String processPath, int state, boolean set)
  {
    // Iterate all breakpoints and remove the breakpoints of the specified process
    for (Iterator it = breakpoints.values().iterator(); it.hasNext();)
    {
      Breakpoint bp = (Breakpoint) it.next();

      if (processPath != null)
      {
        String processName = bp.getQualifier().getItem();
        if (! processPath.equals(processName))
          continue;
      }

      bp.updateState(state, set);
    }
  }
View Full Code Here

  public void clearBreakpoints(String processPath)
  {
    // Iterate all breakpoints and remove the breakpoints of the specified process
    for (Iterator it = breakpoints.values().iterator(); it.hasNext();)
    {
      Breakpoint bp = (Breakpoint) it.next();

      if (processPath != null)
      {
        String processName = bp.getQualifier().getItem();
        if (! processPath.equals(processName))
          continue;
      }

      it.remove();
View Full Code Here

TOP

Related Classes of org.openbp.core.engine.debugger.Breakpoint

Copyright © 2018 www.massapicom. 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.