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 {