public void propertyChange(PropertyChangeEvent event) { String property= event.getProperty(); AnnotationPreference annotationPreference= getVerticalRulerAnnotationPreference(property); if (annotationPreference != null && event.getNewValue() instanceof Boolean) { Object type= annotationPreference.getAnnotationType(); if (((Boolean)event.getNewValue()).booleanValue()) column.addAnnotationType(type); else column.removeAnnotationType(type); column.redraw(); } } };
@Override public void propertyChange(PropertyChangeEvent event) { String property= event.getProperty(); AnnotationPreference annotationPreference= getVerticalRulerAnnotationPreference(property); if (annotationPreference != null && property.equals(annotationPreference.getVerticalRulerPreferenceKey())) { Object type= annotationPreference.getAnnotationType(); if (getPreferenceStore().getBoolean(property)) column.addAnnotationType(type); else column.removeAnnotationType(type); column.redraw(); } } };
showAnnotation= store.getBoolean(key); if (showAnnotation) column.addAnnotationType(preference.getAnnotationType()); column.addAnnotationType(Annotation.TYPE_UNKNOWN);
showAnnotation= store.getBoolean(key); if (showAnnotation) column.addAnnotationType(preference.getAnnotationType()); column.addAnnotationType(Annotation.TYPE_UNKNOWN);
annotationRulerColumn.addAnnotationType(annotationType); verticalRuler.addDecorator(1, annotationRulerColumn);