public HyperlinkSettings getHyperlinkSettings() { // #132723 cannot have null settings if (hyperlinkSettings == null) { Display display = SWTUtil.getStandardDisplay(); hyperlinkSettings = new HyperlinkSettings(display); // Setting link foreground color for windows 7 final String osName = System.getProperty("os.name"); // $NON-NLS-1$ if (osName.toLowerCase().startsWith("windows 7")) { // $NON-NLS-1$ activeForeground = new Color(display, LINK_FOREGROUND); hyperlinkSettings.setForeground(activeForeground); } enabledForeground = hyperlinkSettings.getForeground(); // Bug 22782 - DCR - Need API to draw disabled text in native platform way disabledForeground = display.getSystemColor(SWT.COLOR_GRAY); } return hyperlinkSettings; }