Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 89373 - [Preferences] JFace colors for links should map to Platform Link color
Summary: [Preferences] JFace colors for links should map to Platform Link color
Status: RESOLVED DUPLICATE of bug 163335
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Duong Nguyen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 12:05 EST by Michael Van Meekeren CLA
Modified: 2007-04-13 16:16 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Van Meekeren CLA 2005-03-29 12:05:54 EST
The default colours for HYPERLINKS should be based on the SWT Link widget by
default.  Also changing these does not make the PreferenceLinkArea change it's
color.



    /**
     * Get the default color to use for displaying hyperlinks.
     */
    public static Color getHyperlinkText(Display display) {
        return JFaceResources.getColorRegistry().get(
                JFacePreferences.HYPERLINK_COLOR);
    }

    /**
     * Get the default color to use for displaying active hyperlinks.
     */
    public static Color getActiveHyperlinkText(Display display) {
        return JFaceResources.getColorRegistry().get(
                JFacePreferences.ACTIVE_HYPERLINK_COLOR);
Comment 1 Michael Van Meekeren CLA 2005-04-26 11:35:37 EDT
what's the status on this one?
Comment 2 Tod Creasey CLA 2005-04-26 11:38:45 EDT
We should do it for 3.1
Comment 3 Tod Creasey CLA 2005-04-28 09:31:30 EDT
These are API so they will have to wait. We need to decide how to relate the
platform and user colors as the API colors are kind of redundant now.
Comment 4 Michael Van Meekeren CLA 2005-10-07 11:50:42 EDT
Could we just create the SWT link widget and query the color to get a default
link color in JFace?
Comment 5 Tod Creasey CLA 2005-10-07 11:58:53 EDT
You would have some flash while you created it perhaps but this is not a bad idea.
Comment 6 Kim Horne CLA 2005-10-07 12:08:20 EDT
We already do such a thing for shells as I understand it.  There is code somewhere that creates a shell just 
to rip the font out of it.  It's never shown so there's no flicker... 
Comment 7 Markus Keller CLA 2006-09-13 06:08:42 EDT
See also bug 57044.
Comment 8 Tod Creasey CLA 2007-04-13 16:16:54 EDT

*** This bug has been marked as a duplicate of bug 163335 ***