Package org.fusesource.ide.camel.editor.editor

Examples of org.fusesource.ide.camel.editor.editor.ConditionalBreakpointEditorDialog


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


              Boolean userWantsUpdate = null;
              IFile contextFile = getContextFile();
              String fileName = contextFile.getName();
              String projectName = contextFile.getProject().getName();
             
              ConditionalBreakpointEditorDialog dlg = new ConditionalBreakpointEditorDialog(Display.getDefault().getActiveShell(), _ep);
            dlg.setBlockOnOpen(true);
            if (Window.OK == dlg.open()) {
              String language = dlg.getLanguage();
              String condition = dlg.getCondition();
           
                if (Strings.isBlank(_ep.getCamelContextId()) ||
                  Strings.isBlank(_ep.getId()) ) {
                  // important ID fields are not yet set - ask the user if we
                  // can update those fields for him
View Full Code Here

TOP

Related Classes of org.fusesource.ide.camel.editor.editor.ConditionalBreakpointEditorDialog

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.