private static String getAnnotationType(JPDABreakpoint b, boolean isConditional) { boolean isInvalid = b.getValidity() == VALIDITY.INVALID; String annotationType; if (b instanceof LineBreakpoint) { annotationType = b.isEnabled () ? (isConditional ? EditorContext.CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE : EditorContext.BREAKPOINT_ANNOTATION_TYPE) : (isConditional ? EditorContext.DISABLED_CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_BREAKPOINT_ANNOTATION_TYPE); } else if (b instanceof FieldBreakpoint) { annotationType = b.isEnabled () ? EditorContext.FIELD_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_FIELD_BREAKPOINT_ANNOTATION_TYPE; } else if (b instanceof MethodBreakpoint) { annotationType = b.isEnabled () ? EditorContext.METHOD_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_METHOD_BREAKPOINT_ANNOTATION_TYPE; } else { throw new IllegalStateException(b.toString()); } if (isInvalid && b.isEnabled ()) annotationType += "_broken"; return annotationType; }
String annotationType; if (b instanceof LineBreakpoint) { annotationType = b.isEnabled () ? (isConditional ? EditorContext.CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE : EditorContext.BREAKPOINT_ANNOTATION_TYPE) : EditorContext.DISABLED_BREAKPOINT_ANNOTATION_TYPE); } else if (b instanceof FieldBreakpoint) { annotationType = b.isEnabled () ? EditorContext.FIELD_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_FIELD_BREAKPOINT_ANNOTATION_TYPE; } else if (b instanceof MethodBreakpoint) { annotationType = b.isEnabled () ? EditorContext.METHOD_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_METHOD_BREAKPOINT_ANNOTATION_TYPE; } else if (b instanceof ClassLoadUnloadBreakpoint) { annotationType = b.isEnabled() ? EditorContext.CLASS_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_CLASS_BREAKPOINT_ANNOTATION_TYPE; } else if (isInvalid && b.isEnabled ()) { annotationType += "_broken"; // NOI18N
String annotationType; if (b instanceof LineBreakpoint) { annotationType = b.isEnabled () ? (isConditional ? EditorContext.CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE : EditorContext.BREAKPOINT_ANNOTATION_TYPE) : EditorContext.DISABLED_BREAKPOINT_ANNOTATION_TYPE); } else if (b instanceof FieldBreakpoint) { annotationType = b.isEnabled () ? EditorContext.FIELD_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_FIELD_BREAKPOINT_ANNOTATION_TYPE; } else if (b instanceof MethodBreakpoint) { annotationType = b.isEnabled () ? EditorContext.METHOD_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_METHOD_BREAKPOINT_ANNOTATION_TYPE; } else if (b instanceof ClassLoadUnloadBreakpoint) { annotationType = b.isEnabled() ? EditorContext.CLASS_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_CLASS_BREAKPOINT_ANNOTATION_TYPE; } else if (isInvalid && b.isEnabled ()) { annotationType += "_broken"; // NOI18N
String annotationType; if (b instanceof LineBreakpoint) { annotationType = b.isEnabled () ? (isConditional ? EditorContext.CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE : EditorContext.BREAKPOINT_ANNOTATION_TYPE) : EditorContext.DISABLED_BREAKPOINT_ANNOTATION_TYPE); } else if (b instanceof FieldBreakpoint) { annotationType = b.isEnabled () ? EditorContext.FIELD_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_FIELD_BREAKPOINT_ANNOTATION_TYPE; } else if (b instanceof MethodBreakpoint) { annotationType = b.isEnabled () ? EditorContext.METHOD_BREAKPOINT_ANNOTATION_TYPE : EditorContext.DISABLED_METHOD_BREAKPOINT_ANNOTATION_TYPE; return null; if (isInvalid && b.isEnabled ()) annotationType += "_broken";