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(); } } };