Community
Participate
Working Groups
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);
what's the status on this one?
We should do it for 3.1
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.
Could we just create the SWT link widget and query the color to get a default link color in JFace?
You would have some flash while you created it perhaps but this is not a bad idea.
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...
See also bug 57044.
*** This bug has been marked as a duplicate of bug 163335 ***