Revision 3e89c139
Added by Andreas Müller over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/EnumComboElement.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.taxeditor.ui.combo; |
11 | 10 |
|
12 | 11 |
import java.util.ArrayList; |
... | ... | |
188 | 187 |
} |
189 | 188 |
|
190 | 189 |
} |
191 |
|
|
192 | 190 |
}; |
193 | 191 |
|
194 | 192 |
protected List<T> elementTypeList = new ArrayList<>(); |
... | ... | |
217 | 215 |
return combo; |
218 | 216 |
} |
219 | 217 |
|
220 |
|
|
221 | 218 |
private String getDefaultLabelString() { |
222 | 219 |
if(enumType.equals(ReferenceType.class)){ |
223 | 220 |
return "Reference Type"; |
... | ... | |
299 | 296 |
} |
300 | 297 |
combo.select(index); |
301 | 298 |
} |
302 |
/** {@inheritDoc} */ |
|
299 |
|
|
303 | 300 |
@Override |
304 | 301 |
public void widgetSelected(SelectionEvent e) { |
305 | 302 |
|
... | ... | |
341 | 338 |
String getName(); |
342 | 339 |
Collection<T> getElements(); |
343 | 340 |
} |
344 |
|
|
345 |
|
|
346 |
} |
|
341 |
} |
Also available in: Unified diff
cleanup