Community
Participate
Working Groups
I use dark blue background color for text editors, and I have all syntax highlight according to this colour scheme. The problem is when I debug code, JDT apparently uses syntax highlight for variable details. This is ok, but you don't set background colour for the view. This makes variable details a bit unreadable.
Created attachment 58863 [details] Screenshot of the situation
Deferred. It is too late in 3.3 to make a change like this. Adding this functionality would require a significant change. To have custom settings, we would have to create four new appearance preferences (background/foreground colours and background/foreground highlight colours). Alternatively we could take the settings from the AbstractTextEditor, but those preferences were not intended to be used elsewhere, so using them would require a lot of additional colour management by the detail pane.
You do realize that the text is syntax highlighted? You're already pulling in a whole lot more than a background color. If we can't change the background in the detail pane, we need to be able to turn off its syntax highlighting (which seems rather pointless to me anyway).
*** Bug 195471 has been marked as a duplicate of this bug. ***
*** Bug 195927 has been marked as a duplicate of this bug. ***
Syntax colouring is provided by the JFace source viewer, background colouring is not. Background colouring is specific to editors and is not easily available to other views. This has to work for more than just Java. Marking as a 3.4 candidate. Needs investigation.
Good, thanks - it does seem like the incongruous handling of foreground and background colors is something of a root cause (here and elsewhere). In the meantime, though, I would like my detail pane back :-) Might it be reasonable for 3.3.1 to disable (optionally?) syntax highlighting in the detail pane?
(In reply to comment #3) Seems to me to be syntax highlight. Try this simple code, and set breakpoint to system.out.println and see the content of sz. Return does have different colour than '11'. public class Test { public static void main(String[] args) { String sz = "return 11"; System.out.println(sz); } } I would also turn off the syntax highlight, and use a colour settings from preference pane: general->editors->text editors, or neutral black and white. Syntax colouring in the variable view is pointless according to me because who uses java code in strings in java source? It would make sense more to hightlight sql or something like that, but I cannot imagine this to be really implemented... [-;
Yes, it's definitely the syntax highlighting that's to blame. It's especially noticeable when debugging reflection code, since classes, methods, etc. tend to output well-formed Java signatures in toString().
*** Bug 195667 has been marked as a duplicate of this bug. ***
Created attachment 74070 [details] Patch This patch removes the syntax highlighting and other java syntax features from the detail pane (when debugging java). Only content assist was kept (useful for assigning values and inspecting statements).
If possible, please try out the patch against a recent build. Review and leave a comment if there are any problems. I am targetting this patch for 3.4 M1.
Did some more testing then applied the patch. Tghe syntax highlighting is not very useful in the detail pane, but I'm still expecting a bug about the missing colouring any second now :)
Darin, please review.
Verified.
*** Bug 196488 has been marked as a duplicate of this bug. ***
Changing OS from Mac OS to Mac OS X as per bug 185991
*** Bug 203459 has been marked as a duplicate of this bug. ***
*** Bug 204944 has been marked as a duplicate of this bug. ***
*** Bug 205537 has been marked as a duplicate of this bug. ***
*** Bug 225662 has been marked as a duplicate of this bug. ***