Revision 19333d7c
Added by Patrick Plitzner almost 9 years ago
- fixed order of team members #4936
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/AbstractUnboundEntityCollectionSection.java | ||
---|---|---|
9 | 9 |
*/ |
10 | 10 |
package eu.etaxonomy.taxeditor.ui.section.occurrence.dna; |
11 | 11 |
|
12 |
import java.util.ArrayList; |
|
12 | 13 |
import java.util.Collection; |
13 |
import java.util.HashSet; |
|
14 | 14 |
|
15 | 15 |
import org.eclipse.jface.action.Action; |
16 | 16 |
import org.eclipse.jface.action.IAction; |
... | ... | |
67 | 67 |
Collection<ELEMENT> elements = getEntityCollection(entity); |
68 | 68 |
if(addUnboundElement){ |
69 | 69 |
//cloning to avoid saving the dummy element |
70 |
Collection<ELEMENT> clonedElements = new HashSet<ELEMENT>();
|
|
70 |
Collection<ELEMENT> clonedElements = new ArrayList<ELEMENT>();
|
|
71 | 71 |
clonedElements.addAll(elements); |
72 | 72 |
clonedElements.add(createNewElement()); //add dummy element which is not bound to entity |
73 | 73 |
return clonedElements; |
Also available in: Unified diff