Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2018-11-13 08:46:04 +0000
committerLars Vogel2018-11-16 09:58:50 +0000
commitf2349deb48a9a55ae782c0c4e5fea31200606cea (patch)
tree02641fdfb5128144a769cf0fe8ef5808ba4d6217
parent1541ba8503cba652ebe6230dcddab19a9555d4cd (diff)
downloadeclipse.platform.ui.tools-Y20181128-2200.tar.gz
eclipse.platform.ui.tools-Y20181128-2200.tar.xz
eclipse.platform.ui.tools-Y20181128-2200.zip
Removes commented code Fixes a few sonar issues Change-Id: Ieb82a66656ae464c033a03b8e35751413ef6a391 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/AbstractPickList.java27
1 files changed, 3 insertions, 24 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/AbstractPickList.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/AbstractPickList.java
index cf6b2c08..894e012f 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/AbstractPickList.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/AbstractPickList.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2014, 2017 TwelveTone LLC and others.
+ * Copyright (c) 2014, 2018 TwelveTone LLC and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -46,12 +46,10 @@ import org.eclipse.swt.widgets.Table;
* selectable items, and action buttons for modifying the list.
* </p>
*
- * @author Steven Spungin
- *
*/
public abstract class AbstractPickList extends Composite {
- public static enum PickListFeatures {
+ public enum PickListFeatures {
NO_ORDER, NO_PICKER, NO_GROUP
}
@@ -65,7 +63,6 @@ public abstract class AbstractPickList extends Composite {
protected final Button tiRemove;
protected final Button tiUp;
protected final Button tiDown;
- // private final AutoCompleteField autoCompleteField;
@Deprecated
public AbstractPickList(Composite parent, int style, List<PickListFeatures> listFeatures, Messages messages,
@@ -117,21 +114,6 @@ public abstract class AbstractPickList extends Composite {
gdpicker.grabExcessHorizontalSpace = true;
control.setLayoutData(gdpicker);
- // ComboContentAdapter controlContentAdapter = new ComboContentAdapter()
- // {
- // @Override
- // public void setControlContents(Control control, String text1, int
- // cursorPosition) {
- // super.setControlContents(control, text1, cursorPosition);
- // Object valueInModel = proposals.get(text1);
- // if (valueInModel != null) {
- // getPicker().setSelection(new StructuredSelection(valueInModel));
- // }
- // }
- // };
- // autoCompleteField = new AutoCompleteField(control,
- // controlContentAdapter, new String[0]);
-
toolBar = new Composite(comp, SWT.NONE);
layout = new GridLayout(5, true);
if (listFeatures != null && listFeatures.contains(PickListFeatures.NO_PICKER)) {
@@ -238,7 +220,7 @@ public abstract class AbstractPickList extends Composite {
protected void addPressed() {
}
- abstract protected int getItemCount();
+ protected abstract int getItemCount();
public TableViewer getList() {
return viewer;
@@ -247,9 +229,6 @@ public abstract class AbstractPickList extends Composite {
public void setInput(Object input) {
getPicker().setInput(input);
- // proposals = toProposals(input);
- // final Set<String> keySet = proposals.keySet();
- // autoCompleteField.setProposals(keySet.toArray(new String[keySet.size()]));
}
public IStructuredSelection getSelection() {

Back to the top