Examples of CamelEndpointBreakpoint


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

   */
  public static IBreakpoint[] getBreakpointsForContext(String fileName, String projectName) {
    ArrayList<IBreakpoint> breakpointsFound = new ArrayList<IBreakpoint>();
    final IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(ICamelDebugConstants.ID_CAMEL_DEBUG_MODEL);
    for (IBreakpoint breakpoint : breakpoints) {
      CamelEndpointBreakpoint ceb = (CamelEndpointBreakpoint)breakpoint;
      if (fileName != null &&
            projectName != null &&
            ceb != null &&
        ceb.getFileName() != null &&
        ceb.getFileName().equals(fileName) &&
        ceb.getProjectName() != null &&
        ceb.getProjectName().equals(projectName)) {
        // match - add to found breakpoints
        breakpointsFound.add(breakpoint);
      }
        }
    return breakpointsFound.toArray(new IBreakpoint[breakpointsFound.size()]);
View Full Code Here

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

   * @param fileName    the name of the camel context file
   * @return        the created breakpoint
   * @throws CoreException
   */
  public static IBreakpoint createAndRegisterEndpointBreakpoint(IResource resource, AbstractNode endpoint, String projectName, String fileName) throws CoreException {
      CamelEndpointBreakpoint epb = new CamelEndpointBreakpoint(resource, endpoint, projectName, fileName);
      DebugPlugin.getDefault().getBreakpointManager().addBreakpoint(epb);
      return epb;
    }
View Full Code Here

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

        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())) {
            try {
              if (cep.isEnabled() && bp instanceof CamelConditionalBreakpoint) {
                // show enabled breakpoint decorator
                IDecorator imageRenderingDecorator = new ImageDecorator(ImageProvider.IMG_YELLOWDOT);
                imageRenderingDecorator.setMessage("");
                decorators.add(imageRenderingDecorator);
              } else if (cep.isEnabled() && bp instanceof CamelEndpointBreakpoint) {
                // show enabled breakpoint decorator
                IDecorator imageRenderingDecorator = new ImageDecorator(ImageProvider.IMG_REDDOT);
                imageRenderingDecorator.setMessage("");
                decorators.add(imageRenderingDecorator);
              } else {
View Full Code Here

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

        return Activator.getDefault().getImage(IMG_CAMEL_THREAD_RUN);       
      }
    } else if (element instanceof CamelStackFrame) {
      return Activator.getDefault().getImage(IMG_CAMEL_STACK_FRAME);
    } else if (element instanceof CamelEndpointBreakpoint) {
      CamelEndpointBreakpoint bp = (CamelEndpointBreakpoint)element;
      try {
        if (bp.isEnabled() && element instanceof CamelConditionalBreakpoint) {
          return Activator.getDefault().getImage(IMG_CAMEL_CONDITIONAL_BREAKPOINT_ENABLED);
        } else if (bp.isEnabled() && element instanceof CamelEndpointBreakpoint) {
          return Activator.getDefault().getImage(IMG_CAMEL_BREAKPOINT_ENABLED);
        } else {
          return Activator.getDefault().getImage(IMG_CAMEL_BREAKPOINT_DISABLED);
        }
      } catch (CoreException 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.