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

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


   * @param condition    the condition
   * @return        the created breakpoint
   * @throws CoreException
   */
  public static IBreakpoint createAndRegisterConditionalBreakpoint(IResource resource, AbstractNode endpoint, String projectName, String fileName, String language, String condition) throws CoreException {
      CamelConditionalBreakpoint epb = new CamelConditionalBreakpoint(resource, endpoint, projectName, fileName, language, condition);
      DebugPlugin.getDefault().getBreakpointManager().addBreakpoint(epb);
      return epb;
    }
View Full Code Here


          String projectName = contextFile.getProject().getName();
           
          // now ask the user to define a condition using a language
          IBreakpoint bp = CamelDebugUtils.getBreakpointForSelection(_ep.getId(), fileName, projectName);
          if (bp != null && bp instanceof CamelConditionalBreakpoint) {
            CamelConditionalBreakpoint ccb = (CamelConditionalBreakpoint)bp;
            // TODO: open a dialog for the user to select language and enter the condition - maybe provide a helper for predefined variables
            ConditionalBreakpointEditorDialog dlg = new ConditionalBreakpointEditorDialog(Display.getDefault().getActiveShell(), _ep);
            dlg.setLanguage(ccb.getLanguage());
            dlg.setCondition(ccb.getConditionPredicate());
            dlg.setBlockOnOpen(true);
            if (Window.OK == dlg.open()) {
              String language = dlg.getLanguage();
              String condition = dlg.getCondition();
              ccb.setConditionPredicate(condition);
              ccb.setLanguage(language);
              // notify debug framework that this breakpoint has changed
              DebugPlugin.getDefault().getBreakpointManager().fireBreakpointChanged(ccb);
            }
          }
        }
View Full Code Here

TOP

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

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.