Revision d9f875da
Added by Katja Luther over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewReferenceWizard.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.newWizard; |
11 | 11 |
|
12 |
import java.util.Set;
|
|
12 |
import java.util.List;
|
|
13 | 13 |
|
14 | 14 |
import org.eclipse.e4.ui.workbench.IWorkbench; |
15 | 15 |
import org.eclipse.jface.viewers.IStructuredSelection; |
... | ... | |
61 | 61 |
@Override |
62 | 62 |
protected Reference createNewEntity() { |
63 | 63 |
if (refType != null){ |
64 |
Set<ReferenceType> inReferenceTypes = ReferenceType.inReferenceContraints(refType);
|
|
64 |
List<ReferenceType> inReferenceTypes = ReferenceType.inReferenceContraints(refType);
|
|
65 | 65 |
if (!inReferenceTypes.isEmpty()){ |
66 | 66 |
return ReferenceFactory.newReference(inReferenceTypes.iterator().next()); |
67 | 67 |
} |
Also available in: Unified diff
minor