/** * Returns the color descriptor associated with the given symbolic color * name. As of 3.4 if this color is not defined then an unspecified color * is returned. Users that wish to ensure a reasonable default value should * use {@link #getColorDescriptor(String, ColorDescriptor)} instead. * * @since 3.1 * * @param symbolicName * @return the color descriptor associated with the given symbolic color * name or an unspecified sentinel. */ public ColorDescriptor getColorDescriptor(String symbolicName) { return getColorDescriptor(symbolicName, DEFAULT_COLOR); }
/** * Returns the color descriptor associated with the given symbolic color * name. As of 3.4 if this color is not defined then an unspecified color * is returned. Users that wish to ensure a reasonable default value should * use {@link #getColorDescriptor(String, ColorDescriptor)} instead. * * @since 3.1 * * @param symbolicName * @return the color descriptor associated with the given symbolic color * name or an unspecified sentinel. */ public ColorDescriptor getColorDescriptor(String symbolicName) { return getColorDescriptor(symbolicName, DEFAULT_COLOR); }
/** * Returns the color descriptor associated with the given symbolic color * name. As of 3.4 if this color is not defined then an unspecified color * is returned. Users that wish to ensure a reasonable default value should * use {@link #getColorDescriptor(String, ColorDescriptor)} instead. * * @since 1.0 * * @param symbolicName * @return the color descriptor associated with the given symbolic color * name or an unspecified sentinel. */ public ColorDescriptor getColorDescriptor(String symbolicName) { return getColorDescriptor(symbolicName, DEFAULT_COLOR); }
private void refresh () { if ( this.color != null ) { // we may not dispose, the manager has to do that this.color = null; } if ( this.activeColor != null ) { this.manager.destroyColor ( this.activeColor ); this.activeColor = null; } this.activeColor = JFaceResources.getColorRegistry ().getColorDescriptor ( this.name, this.defaultColor ); if ( this.activeColor != null ) { this.color = this.manager.createColor ( this.activeColor ); } }
private void refresh () { if ( this.color != null ) { // we may not dispose, the manager has to do that this.color = null; } if ( this.activeColor != null ) { this.manager.destroyColor ( this.activeColor ); this.activeColor = null; } this.activeColor = JFaceResources.getColorRegistry ().getColorDescriptor ( this.name, this.defaultColor ); if ( this.activeColor != null ) { this.color = this.manager.createColor ( this.activeColor ); } }