/** * Get the foreground color that should be used for this popup. Subclasses * may override. * * @return the foreground color to be used. Should not be <code>null</code>. * * @since 3.4 * * @see #getForegroundColorExclusions() */ protected Color getForeground() { return getDefaultForeground(); }
/** * Get the foreground color that should be used for this popup. Subclasses * may override. * * @return the foreground color to be used. Should not be <code>null</code>. * * @since 3.4 * * @see #getForegroundColorExclusions() */ protected Color getForeground() { return getDefaultForeground(); }
/** * Get the foreground color that should be used for this popup. Subclasses * may override. * * @return the foreground color to be used. Should not be <code>null</code>. * * @since 1.1 * * @see #getForegroundColorExclusions() */ protected Color getForeground() { return getDefaultForeground(); }
/** * Apply any desired color to the specified composite and its children. * * @param composite * the contents composite */ private void applyColors(Composite composite) { // The getForeground() and getBackground() methods // should not answer null, but IColorProvider clients // are accustomed to null meaning use the default, so we guard // against this assumption. Color color = getForeground(); if (color == null) color = getDefaultForeground(); applyForegroundColor(color, composite, getForegroundColorExclusions()); color = getBackground(); if (color == null) color = getDefaultBackground(); applyBackgroundColor(color, composite, getBackgroundColorExclusions()); }
/** * Apply any desired color to the specified composite and its children. * * @param composite * the contents composite */ private void applyColors(Composite composite) { // The getForeground() and getBackground() methods // should not answer null, but IColorProvider clients // are accustomed to null meaning use the default, so we guard // against this assumption. Color color = getForeground(); if (color == null) color = getDefaultForeground(); applyForegroundColor(color, composite, getForegroundColorExclusions()); color = getBackground(); if (color == null) color = getDefaultBackground(); applyBackgroundColor(color, composite, getBackgroundColorExclusions()); }
/** * Apply any desired color to the specified composite and its children. * * @param composite * the contents composite */ private void applyColors(Composite composite) { // The getForeground() and getBackground() methods // should not answer null, but IColorProvider clients // are accustomed to null meaning use the default, so we guard // against this assumption. Color color = getForeground(); if (color == null) color = getDefaultForeground(); applyForegroundColor(color, composite, getForegroundColorExclusions()); color = getBackground(); if (color == null) color = getDefaultBackground(); applyBackgroundColor(color, composite, getBackgroundColorExclusions()); }
Color foregroundColor = getForeground(); if (foregroundColor == null) foregroundColor = getDefaultForeground(); infoColor = new Color(display, blend( backgroundColor.getRGB(), foregroundColor.getRGB(),