Examples of CamelThread


Examples of org.fusesource.ide.launcher.debug.model.CamelThread

          }
        } else if (firstElement instanceof CamelStackFrame) {
          CamelStackFrame stackFrame = (CamelStackFrame)firstElement;
          highlightBreakpointNodeWithID(stackFrame.getEndpointId());
        } else if (firstElement instanceof CamelThread) {
          CamelThread t = (CamelThread)firstElement;
          try {
            CamelStackFrame stackFrame = (CamelStackFrame)t.getTopStackFrame();
            if (stackFrame != null) {
              highlightBreakpointNodeWithID(stackFrame.getEndpointId())
            }
          } catch (DebugException e) {
            Activator.getLogger().error(e);
View Full Code Here

Examples of org.fusesource.ide.launcher.debug.model.CamelThread

      if (ev.getSource() instanceof CamelThread && (ev.getKind() == DebugEvent.TERMINATE || ev.getKind() == DebugEvent.RESUME)) {
        // we are only interested in hit camel breakpoints
        resetHighlightBreakpointNode();
      } else {
        if (ev.getSource() instanceof CamelThread) {
          CamelThread thread = (CamelThread)ev.getSource();
          if (ev.getKind() == DebugEvent.SUSPEND && ev.getDetail() == DebugEvent.BREAKPOINT) {
            // a breakpoint was hit and thread is on suspend -> stack should be selected in tree now
            try {
              CamelStackFrame stackFrame = (CamelStackFrame)thread.getTopStackFrame();
              if (stackFrame != null) highlightBreakpointNodeWithID(stackFrame.getEndpointId());
            } catch (DebugException ex) {
              Activator.getLogger().error(ex);
            }
          }
View Full Code Here

Examples of org.fusesource.ide.launcher.debug.model.CamelThread

  @Override
  public Image getImage(Object element) {
    if (element instanceof CamelDebugTarget) {
      return Activator.getDefault().getImage(IMG_CAMEL_DEBUG_TARGET);     
    } else if (element instanceof CamelThread) {
      CamelThread t = (CamelThread)element;
      if (t.isSuspended()) {
        return Activator.getDefault().getImage(IMG_CAMEL_THREAD_PAUSE);
      } else {
        return Activator.getDefault().getImage(IMG_CAMEL_THREAD_RUN);       
      }
    } else if (element instanceof CamelStackFrame) {
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.