Revision 235fd63d
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/TaxonBaseSelectionDialog.java | ||
---|---|---|
21 | 21 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
22 | 22 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
23 | 23 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
24 |
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache; |
|
25 | 24 |
import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard; |
26 | 25 |
import eu.etaxonomy.taxeditor.newWizard.NewTaxonWizard; |
27 | 26 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
... | ... | |
79 | 78 |
pattern = ((Text)control).getText(); |
80 | 79 |
} |
81 | 80 |
|
82 |
|
|
83 |
|
|
84 |
model = (List)CdmStore.getService(ITaxonService.class).getUuidAndTitleCache(Taxon.class, limitOfInitialElements, pattern); |
|
81 |
if (pattern == null || pattern.equals("?")){ |
|
82 |
model = (List)CdmStore.getService(ITaxonService.class).getUuidAndTitleCache(Taxon.class, null, null); |
|
83 |
}else{ |
|
84 |
model = (List)CdmStore.getService(ITaxonService.class).getUuidAndTitleCache(Taxon.class, limitOfInitialElements, pattern); |
|
85 |
} |
|
85 | 86 |
} |
86 | 87 |
|
87 | 88 |
/** {@inheritDoc} */ |
Also available in: Unified diff
fix #6342: fix exception when using ? in selection dialog