summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorHendrik Still2013-09-19 07:09:51 (EDT)
committer Hendrik Still2013-09-19 07:17:26 (EDT)
commit2ad4c3d023330247038a0a737041b388b9bd9ea6 (patch)
tree58a011c00ac534130d94f0e4a837695347290877
parent6c753cd28a9731192fa36b4b8a1d3e0a3b874e86 (diff)
downloadeclipse.platform.ui-2ad4c3d023330247038a0a737041b388b9bd9ea6.zip
eclipse.platform.ui-2ad4c3d023330247038a0a737041b388b9bd9ea6.tar.gz
eclipse.platform.ui-2ad4c3d023330247038a0a737041b388b9bd9ea6.tar.bz2
Bug 413973 - [Viewers] Add generics to the TreeViewerrefs/changes/84/16584/1
-editElement: changed type for element parameter back to Object editElement handles E typed and TreePath typed objects Change-Id: I3738621eb362988ed296086671fef0e3eef05977 Signed-off-by: Hendrik Still <hendrik.still@gammas.de>
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
index d7b869c..30036bd 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
@@ -1216,7 +1216,7 @@ public class TreeViewer<E,I> extends AbstractTreeViewer<E, I> {
}
@Override
- public void editElement(E element, int column) {
+ public void editElement(Object element, int column) {
if( element instanceof TreePath ) {
try {
getControl().setRedraw(false);
@@ -1239,7 +1239,9 @@ public class TreeViewer<E,I> extends AbstractTreeViewer<E, I> {
getControl().setRedraw(true);
}
} else {
- super.editElement(element, column);
+ @SuppressWarnings("unchecked")
+ E singleElement = (E) element;
+ super.editElement(singleElement, column);
}
}