/** * Returns the color registry for JFace itself. * <p> * * @return the <code>ColorRegistry</code>. * @since 3.0 */ public static ColorRegistry getColorRegistry() { if (colorRegistry == null) { colorRegistry = new ColorRegistry(); } return colorRegistry; }
/** * Returns the color registry for JFace itself. * <p> * * @return the <code>ColorRegistry</code>. * @since 3.0 */ public static ColorRegistry getColorRegistry() { if (colorRegistry == null) { colorRegistry = new ColorRegistry(); } return colorRegistry; }
private ColorRegistryStore() { colorRegistry = new ColorRegistry(); initializeDefaultColors(); } public static ColorRegistryStore getInstance() {
/** * get colors for use in the UI * * @see #COLOR_HR * @see #COLOR_HR_SHADOW */ public static ColorRegistry getColors() { ColorRegistry colorRegistry = (ColorRegistry) Display.getCurrent().getData(KEY_COLOR_REGISTRY); if (colorRegistry == null) { colorRegistry = new ColorRegistry(); colorRegistry.put(COLOR_HR, new RGB(132, 132, 132)); colorRegistry.put(COLOR_HR_SHADOW, new RGB(206, 206, 206)); Display.getCurrent().setData(KEY_COLOR_REGISTRY, colorRegistry); } return colorRegistry; } }
colorRegistry = new ColorRegistry( getWorkbench().getDisplay() );
colorRegistry = new ColorRegistry( getWorkbench().getDisplay() );
defaultThemeColorRegistry = new ColorRegistry(PlatformUI.getWorkbench() .getDisplay());