Revision e3a4a3ff
Added by Andreas Müller almost 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NameSelectionDialog.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
19 | 19 |
import eu.etaxonomy.cdm.api.service.INameService; |
20 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
20 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
21 | 21 |
import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard; |
22 | 22 |
import eu.etaxonomy.taxeditor.newWizard.NewNonViralNameWizard; |
23 | 23 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
... | ... | |
25 | 25 |
/** |
26 | 26 |
* @author n.hoffmann |
27 | 27 |
* @created 04.06.2009 |
28 |
* @version 1.0 |
|
29 | 28 |
*/ |
30 |
public class NameSelectionDialog extends AbstractFilteredCdmResourceSelectionDialog<TaxonNameBase> {
|
|
29 |
public class NameSelectionDialog extends AbstractFilteredCdmResourceSelectionDialog<TaxonName> { |
|
31 | 30 |
|
32 |
public static TaxonNameBase select(Shell shell, ConversationHolder conversation, TaxonNameBase name) {
|
|
31 |
public static TaxonName select(Shell shell, ConversationHolder conversation, TaxonName name) {
|
|
33 | 32 |
NameSelectionDialog dialog = new NameSelectionDialog(shell, conversation, |
34 | 33 |
"Choose a name", false, name); |
35 | 34 |
return getSelectionFromDialog(dialog); |
36 | 35 |
} |
37 | 36 |
|
38 |
protected NameSelectionDialog(Shell shell, ConversationHolder conversation, String title, boolean multi, TaxonNameBase name) {
|
|
37 |
protected NameSelectionDialog(Shell shell, ConversationHolder conversation, String title, boolean multi, TaxonName name) { |
|
39 | 38 |
super(shell, conversation, title, multi, NameSelectionDialog.class.getCanonicalName(), name); |
40 | 39 |
} |
41 | 40 |
|
42 | 41 |
/** {@inheritDoc} */ |
43 | 42 |
@Override |
44 |
protected TaxonNameBase getPersistentObject(UUID cdmUuid) {
|
|
43 |
protected TaxonName getPersistentObject(UUID cdmUuid) { |
|
45 | 44 |
return CdmStore.getService(INameService.class).load(cdmUuid); |
46 | 45 |
} |
47 | 46 |
|
Also available in: Unified diff
ref #6446 merge taxon name subclasses in TaxEditor