Bug 309810 - [JFace] ColorRegistry has misleading javadoc
Summary: [JFace] ColorRegistry has misleading javadoc
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-20 10:04 EDT by Remy Suen CLA
Modified: 2019-09-06 15:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2010-04-20 10:04:25 EDT
"A color registry owns all of the Color objects registered with it, and automatically disposes of them when the SWT Display that creates the Colors is disposed. Because of this, clients do not need to (indeed, must not attempt to) dispose of Color objects themselves."

On the other hand, if you use the ColorRegistry(Display, boolean) constructor and pass 'false' to the 'boolean' parameter, no tracking will be done. In this case, you _must_ dispose the instances yourself. However, this might feel contradictory to a reader because they originally read that they must _not_ attempt to dispose the Color objects themselves. :|
Comment 1 Eclipse Webmaster CLA 2019-09-06 15:37:48 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.