Package org.fusesource.ide.launcher.debug.model

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


      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

  @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

Related Classes of org.fusesource.ide.launcher.debug.model.CamelThread

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.