IFile contextFile = getContextFile();
String fileName = contextFile.getName();
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());