Bug 581803

Summary: Foreground Color Not Updated When Text Displayed is One Character
Product: [Tools] GEF Reporter: Jun Lin Lee <junlin.lee>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: p.beauvoir
Version: 3.10.100   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=568777
Whiteboard:
Attachments:
Description Flags
Bug replication code none

Description Jun Lin Lee CLA 2023-04-12 22:31:12 EDT
When there are two different Labels displaying the same single character text, and the two Labels have different foreground colors set to them, the second Label's foreground color will still follow the first Label's foreground color. 

This is found to happen in v3.10.100, but issue still persists when changing to v3.12.0 and v3.13.0

The observed behavior of the issue:
- For each Labels that displays same one character texts, they will have the same foreground color
- The foreground colors of the Labels that displays the same one character texts will follow the first `setForegroundColor()` color that was passed to that Label.
For example:
firstLabel - No foreground color set
secondLabel- Blue foreground color set
thirdLabel - Red foreground color set
All three labels will have blue foreground color.
Comment 1 Jun Lin Lee CLA 2023-04-12 22:33:11 EDT
Created attachment 289027 [details]
Bug replication code

The second Label's foreground color follows the first Label's foreground color, even if they are different
Comment 2 Phil Beauvoir CLA 2023-04-13 05:17:25 EDT
Hi, GEF and Draw2d projects are now maintained at GitHub. Please open a new issue with this information here - https://github.com/eclipse/gef-classic/issues
Comment 3 Phil Beauvoir CLA 2023-04-13 08:06:15 EDT
I reported it here:

https://github.com/eclipse/gef-classic/issues/173