aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Still2013-08-21 09:05:47 (EDT)
committerHendrik Still2013-09-06 13:36:24 (EDT)
commit960779a9d66f3148d692c29e3206a09e731d6a24 (patch)
treedca8030a17c6042676056cbe92f85433e0369116
parentdfd1f4ce08f16035e6cc80616a5f84495d1dc43f (diff)
downloadeclipse.platform.ui-960779a9d66f3148d692c29e3206a09e731d6a24.zip
eclipse.platform.ui-960779a9d66f3148d692c29e3206a09e731d6a24.tar.gz
eclipse.platform.ui-960779a9d66f3148d692c29e3206a09e731d6a24.tar.bz2
Bug 415573 - [Viewers] Add generics to the ILazyContentProviderrefs/changes/66/16266/1
Change-Id: Id2812020314fa7cb301d7a1a9b78443f7e3aa575 Signed-off-by: Hendrik Still <hendrik.still@gammas.de>
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ILazyContentProvider.java20
1 files changed, 11 insertions, 9 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ILazyContentProvider.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ILazyContentProvider.java
index a97f371..821ba3e 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ILazyContentProvider.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ILazyContentProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
+ * Copyright (c) 2005, 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 415573
*******************************************************************************/
package org.eclipse.jface.viewers;
@@ -14,29 +15,30 @@ package org.eclipse.jface.viewers;
* The ILazyContentProvider is the content provider
* for table viewers created using the SWT.VIRTUAL flag that
* only wish to return their contents as they are queried.
- *
+ *
* <strong>NOTE:</strong> As the ILazyContentProvider does
* not have API for determining the total item count any
* changes to the number of items for this object while
- * require a call to <code>#setItemCount</code> on the
+ * require a call to <code>#setItemCount</code> on the
* viewer that uses it.
+ * @param <I> Type of the input for the view
*/
-public interface ILazyContentProvider extends IContentProvider {
+public interface ILazyContentProvider<I> extends IContentProvider<I> {
/**
* Called when a previously-blank item becomes visible in the
* TableViewer. If the content provider knows the element
- * at this row, it should respond by calling
+ * at this row, it should respond by calling
* TableViewer#replace(Object, int).
- *
+ *
* <strong>NOTE</strong> #updateElement(int index) can be used to determine selection
- * values. TableViewer#replace(Object, int) is not called before
+ * values. TableViewer#replace(Object, int) is not called before
* returning from this method selections may have missing or stale elements.
* In this situation it is suggested that the selection is asked
* for again after he update.
- *
+ *
* @param index The index that is being updated in the
* table.
*/
public void updateElement(int index);
-
+
}