Community
Participate
Working Groups
Created attachment 90912 [details] Screencap of the editor in this mode 1) go to the control panel-accessibility->display and enable high contrast 2) open eclipse and open/create an manifest.mf file expected result: readable text result: the manifest editor page shows black text on a black background in the manifest editor for property values. This makes it pretty much unusable.
*sigh* :(
Created attachment 90924 [details] patch oh no, don't let Kim run bugzilla out of numbers! :) it fixes bug 220648 as well
Created attachment 90925 [details] manifest look after patch is that better?
Created attachment 90927 [details] exsd editor after patch
Thanks Jacek!
*** Bug 220648 has been marked as a duplicate of this bug. ***
>20080227
Created attachment 90938 [details] mylyn/context/zip
Reopening after reverting fix. It seems we had a minor side effect in the form of bug 220745 :)
Display.getDefault() is probably returning null I suppose.
Created attachment 91117 [details] patch safer approach. even headless can use color. I initially posted this patch under bug 220745 but this seems right place for it.
quick question, how does JDT UI handle this Markus?
(In reply to comment #12) > quick question, how does JDT UI handle this Markus? I guess JDT is defining colors in extension point (they're configurable via preferences) and inherits some default colors from default text editor. Actually only the default background and foreground colors change in HighContrast and other (keywords, numbers, strings, etc) remain the same. Maybe we could get rid of P_DEFAULT, P_HEADER_VALUE, P_HEADER_ATTRIBUTES (they're RGB(0,0,0)) and use default editor foreground color instead.
Created attachment 91282 [details] patch patch to use text editor's default preferences for foreground color. Works in highcontrast mode. Seems JDT sets its foreground/background colors when initializing editor in org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.initializeViewerColors(). The other colors preferences (e.g. for syntax highlighting) are initialized in org.eclipse.jdt.ui.PreferenceConstants.initializeDefaultValues(IPreferenceStore) (quite like in PDE ColorManager)
I will probably commit the second to last patch. After that, we should open an enhancement so PDE can integrate better with the 'Colors and Fonts' stuff contained within the Platform.
Fixed in HEAD (2nd to last solution) > 20080305
Verified in I20080325-0100