Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-12-17 17:52:39 +0000
committerLars Vogel2019-12-17 17:52:39 +0000
commitaf0ca47eb2643d54dcddb6a60c008fb57dd75eec (patch)
treee7ce11adc1c03de47805eedd17edea71b61b15b8
parent88f44f2b33f2e755b79a7d07528a0481bf30f1a8 (diff)
downloadeclipse.platform.ui.tools-af0ca47eb2643d54dcddb6a60c008fb57dd75eec.tar.gz
eclipse.platform.ui.tools-af0ca47eb2643d54dcddb6a60c008fb57dd75eec.tar.xz
eclipse.platform.ui.tools-af0ca47eb2643d54dcddb6a60c008fb57dd75eec.zip
FindParentReferenceElementDialog Change-Id: Ie18790fcbae74dbe0cdea43612756c003ea4872a Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/dialogs/FindParentReferenceElementDialog.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/dialogs/FindParentReferenceElementDialog.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/dialogs/FindParentReferenceElementDialog.java
index 78a8dfc1..a261b174 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/dialogs/FindParentReferenceElementDialog.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/dialogs/FindParentReferenceElementDialog.java
@@ -138,12 +138,8 @@ public class FindParentReferenceElementDialog extends SaveDialogBoundsSettingsDi
final Combo combo = new Combo(parentForCombo, SWT.NONE);
eClassViewer = new ComboViewer(combo);
combo.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false));
- eClassViewer.setLabelProvider(new LabelProvider() {
- @Override
- public String getText(Object element) {
- return ((EClass) element).getName();
- }
- });
+ eClassViewer.setLabelProvider(LabelProvider.createTextProvider(element -> ((EClass) element).getName()));
+
eClassViewer.setContentProvider(new ArrayContentProvider());
final List<EClass> eClassList = getExtendableClasses();
eClassViewer.setComparator(new ViewerComparator() {

Back to the top