Bug 197360 - [misc] org.eclipse.jface.text.TextViewer#setTextColor method is logically wrong
Summary: [misc] org.eclipse.jface.text.TextViewer#setTextColor method is logically wrong
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P5 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-07-20 19:57 EDT by Cagatay Calli CLA
Modified: 2019-09-06 16:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cagatay Calli CLA 2007-07-20 19:57:23 EDT
Build ID: I20070621-1340

Steps To Reproduce:
1. A given text is styled (background color is set, underlined etc.).
2. setTextColor() method is applied using a color.
3. Old styling is lost.


More information:
I think that losing all styling after using one method to set foreground color is logically wrong and underlying implementation should be changed.
Comment 1 Dani Megert CLA 2007-07-23 05:02:47 EDT
You're right. As you might have noticed this method is not used inside the SDK. Even if the method works correctly it will run into troubles when used in a viewer that uses a presentation reconciler to set the style ranges.

We won't work on this unless we get a patch.
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:04:02 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.