Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IBaseLabelProvider.java')
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IBaseLabelProvider.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IBaseLabelProvider.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IBaseLabelProvider.java
index 28319b6ed87..401a281d697 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IBaseLabelProvider.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/IBaseLabelProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2010 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Hendrik Still <hendrik.still@gammas.de> - bug 412273
*******************************************************************************/
package org.eclipse.jface.viewers;
@@ -34,11 +35,12 @@ package org.eclipse.jface.viewers;
* it is the responsibility of the user to ensure <code>dispose</code>
* is called when the provider is no longer needed.
* </p>
+ * @param <E> Type of an element of the model
*
* @see ILabelProvider
* @see ITableLabelProvider
*/
-public interface IBaseLabelProvider {
+public interface IBaseLabelProvider<E> {
/**
* Adds a listener to this label provider.
* Has no effect if an identical listener is already registered.
@@ -73,7 +75,7 @@ public interface IBaseLabelProvider {
* @return <code>true</code> if the label would be affected,
* and <code>false</code> if it would be unaffected
*/
- public boolean isLabelProperty(Object element, String property);
+ public boolean isLabelProperty(E element, String property);
/**
* Removes a listener to this label provider.

Back to the top