Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 89373

Summary: [Preferences] JFace colors for links should map to Platform Link color
Product: [Eclipse Project] Platform Reporter: Michael Van Meekeren <michaelvanmeekeren>
Component: UIAssignee: Duong Nguyen <duongn>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, kpeter, lindawat, markus.kell.r
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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 ***