Community
Participate
Working Groups
org.eclipse.ui.internal.texteditor.DelegatingAnnotationPreference extends org.eclipse.ui.texteditor.AnnotationPreference so that the attributes are created on request and no longer stored in the fAttributes-Map of AnnotationPreference. Unfortunately some of the get-methods of AnnotationPreference have no override in DelegatingAnnotationPreference (e.g. getTextStylePreferenceKey()) and try to find their vaue in the fAttributs-Map. That causes the result of those methods to be always null even if that value is defined in the extensionpoint.
Where does this cause a problem? Please provide steps to reproduce or a sample plug-in that shows the problem.
Created attachment 207473 [details] test plug-in (sources included) The testcase is a simple toolbar action showing the results of a read of the annotation preferences. Allthough the sample annotation in the plugin specifies a key for textStyle, the value for that key is reportetd as null.
Fixed in master: http://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=0ff4b7113c6e626657bd2141b11925cab5ddaf41