Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Bégaudeau2017-05-30 09:57:45 -0400
committerStéphane Bégaudeau2017-05-30 09:57:45 -0400
commit006ad47db20cd95034960f2ced29ea94e05f5762 (patch)
treedbef84a9a4eed35c5303f5681148c8edbff4d927
parent31168300478790d8de9b00282638141870ebcda0 (diff)
downloadorg.eclipse.eef-006ad47db20cd95034960f2ced29ea94e05f5762.tar.gz
org.eclipse.eef-006ad47db20cd95034960f2ced29ea94e05f5762.tar.xz
org.eclipse.eef-006ad47db20cd95034960f2ced29ea94e05f5762.zip
[517436] Fix an issue with the filter of TabElementTreeSelectionDialog
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=517436 Change-Id: I2918c008f27a4b9fd643455521c281c636fdbd08 Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
-rw-r--r--plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/TabElementTreeSelectionDialog.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/TabElementTreeSelectionDialog.java b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/TabElementTreeSelectionDialog.java
index b7033d259..7dd42fc0f 100644
--- a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/TabElementTreeSelectionDialog.java
+++ b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/TabElementTreeSelectionDialog.java
@@ -30,6 +30,7 @@ import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.viewers.AbstractTreeViewer;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.IDoubleClickListener;
+import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITreeContentProvider;
@@ -341,7 +342,7 @@ public abstract class TabElementTreeSelectionDialog extends Dialog implements IP
@Override
protected boolean isLeafMatch(Viewer viewer, Object element) {
if (element instanceof EObject) {
- String labelText = ((EObject)element).toString();
+ String labelText = ((ILabelProvider)((AbstractTreeViewer)viewer).getLabelProvider()).getText(element);
if (labelText != null) {
return wordMatches(labelText);
}

Back to the top