Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/ViewerElement.java')
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/ViewerElement.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/ViewerElement.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/ViewerElement.java
index 5b5a547f..b053d3d7 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/ViewerElement.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/ViewerElement.java
@@ -7,12 +7,14 @@
*
* Contributors:
* Wim Jongman <wim.jongman@remainsoftware.com> - initial API and implementation
+ * Steven Spungin <steve@spungin.tv> -Bug 439284 - [model editor] make list a combo with autocomplete for add part descriptor
******************************************************************************/
package org.eclipse.e4.tools.emf.ui.internal.common.uistructure;
import javax.inject.Inject;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
+import org.eclipse.e4.tools.emf.ui.common.ComboViewerAutoComplete;
import org.eclipse.e4.tools.emf.ui.common.component.AbstractComponentEditor;
import org.eclipse.e4.tools.emf.ui.internal.Messages;
import org.eclipse.e4.tools.emf.ui.internal.ResourceProvider;
@@ -157,9 +159,11 @@ public class ViewerElement {
buttonCompTopLayout.marginHeight = 0;
buttonCompTop.setLayout(buttonCompTopLayout);
- dropDown = new ComboViewer(buttonCompTop);
+ dropDown = new ComboViewer(buttonCompTop, SWT.READ_ONLY | SWT.SIMPLE);
dropDown.getControl().setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
+ ComboViewerAutoComplete autocomplete = new ComboViewerAutoComplete(dropDown);
+
addButton = new Button(buttonCompTop, SWT.PUSH | SWT.FLAT);
addButton.setImage(editor.createImage(ResourceProvider.IMG_Obj16_table_add));
addButton.setText(Messages.ModelTooling_Common_AddEllipsis);

Back to the top