Examples of CamelStackFrame


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

   * @see org.eclipse.debug.core.sourcelookup.ISourceLookupParticipant#getSourceName(java.lang.Object)
   */
  @Override
  public String getSourceName(Object object) throws CoreException {
    if (object instanceof CamelStackFrame) {
      CamelStackFrame stackFrame = (CamelStackFrame)object;
      CamelDebugTarget dt = (CamelDebugTarget) stackFrame.getDebugTarget();
      IEditorInput input = CamelDebugRegistry.getInstance().getEntry(dt.getLaunch().getLaunchConfiguration()).getEditorInput();
      IFile f = (IFile)input.getAdapter(IFile.class);
      return f.getName();
    }
    return null;
View Full Code Here

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

          }
          if (selectedEditPart != null) {
            lastSelectedEditPart = selectedEditPart;
          }
        } 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.CamelStackFrame

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