fMarginPainter.paint(IPainter.CONFIGURATION);
}
return;
}
AnnotationPreference info= getAnnotationPreferenceInfo(p);
if (info != null) {
if (info.getColorPreferenceKey().equals(p)) {
Color color= getColor(info.getColorPreferenceKey());
if (fAnnotationPainter != null) {
fAnnotationPainter.setAnnotationTypeColor(info.getAnnotationType(), color);
fAnnotationPainter.paint(IPainter.CONFIGURATION);
}
setAnnotationOverviewColor(info.getAnnotationType(), color);
return;
}
if (info.getTextPreferenceKey().equals(p) || info.getTextStylePreferenceKey() != null && info.getTextStylePreferenceKey().equals(p)) {
Object style= getAnnotationDecorationType(info.getAnnotationType());
if (AnnotationPreference.STYLE_NONE != style)
showAnnotations(info.getAnnotationType(), false, true);
else
hideAnnotations(info.getAnnotationType(), false, true);
return;
}
if (info.getHighlightPreferenceKey() != null && info.getHighlightPreferenceKey().equals(p)) {
if (areAnnotationsHighlighted(info.getAnnotationType()))
showAnnotations(info.getAnnotationType(), true, true);
else
hideAnnotations(info.getAnnotationType(), true, true);
return;
}
Object style= getAnnotationDecorationType(info.getAnnotationType());
if (style != AnnotationPreference.STYLE_NONE)
showAnnotations(info.getAnnotationType(), false, false);
else
// hideAnnotations(info.getAnnotationType(), false, false);
if (info.getOverviewRulerPreferenceKey().equals(p)) {
if (isAnnotationOverviewShown(info.getAnnotationType()))
showAnnotationOverview(info.getAnnotationType(), true);
else
hideAnnotationOverview(info.getAnnotationType(), true);
return;
}
}
}