/** * Get the background color that should be used for this popup. Subclasses * may override. * * @return the background color to be used. Should not be <code>null</code>. * * @since 3.4 * * @see #getBackgroundColorExclusions() */ protected Color getBackground() { return getDefaultBackground(); }
/** * Get the background color that should be used for this popup. Subclasses * may override. * * @return the background color to be used. Should not be <code>null</code>. * * @since 1.1 * * @see #getBackgroundColorExclusions() */ protected Color getBackground() { return getDefaultBackground(); }
/** * Get the background color that should be used for this popup. Subclasses * may override. * * @return the background color to be used. Should not be <code>null</code>. * * @since 3.4 * * @see #getBackgroundColorExclusions() */ protected Color getBackground() { return getDefaultBackground(); }
/** * 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()); }
backgroundColor = getDefaultBackground(); Color foregroundColor = getForeground(); if (foregroundColor == null)