Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IFontDecorator.java')
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IFontDecorator.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IFontDecorator.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IFontDecorator.java
index ea69c378bc1..67f8b078f64 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IFontDecorator.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IFontDecorator.java
@@ -18,11 +18,12 @@ import org.eclipse.swt.graphics.Font;
*
* If an IFontDecorator decorates a font in an object that also has
* an IFontProvider the IFontDecorator will take precedence.
+ * @param <E> Type of an element of the model
* @see IFontProvider
*
* @since 3.1
*/
-public interface IFontDecorator {
+public interface IFontDecorator<E> {
/**
* Return the font for element or <code>null</code> if there
@@ -31,6 +32,6 @@ public interface IFontDecorator {
* @param element
* @return Font or <code>null</code>
*/
- public Font decorateFont(Object element);
+ public Font decorateFont(E element);
}

Back to the top