Revision 7efbd7cf
Added by Katja Luther almost 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/TaxonNodeSelectionDialog.java | ||
---|---|---|
19 | 19 |
import org.eclipse.swt.widgets.Control; |
20 | 20 |
import org.eclipse.swt.widgets.Label; |
21 | 21 |
import org.eclipse.swt.widgets.Shell; |
22 |
import org.eclipse.swt.widgets.Text; |
|
22 | 23 |
|
23 | 24 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
24 | 25 |
import eu.etaxonomy.cdm.api.service.IClassificationService; |
... | ... | |
126 | 127 |
// default to first tree |
127 | 128 |
// TODO this will be problematic and can only be seen as workaround |
128 | 129 |
|
130 |
Control control = getPatternControl(); |
|
131 |
String pattern = null; |
|
132 |
if (control != null){ |
|
133 |
pattern = ((Text)control).getText(); |
|
134 |
} |
|
135 |
|
|
129 | 136 |
|
130 | 137 |
if(classifications == null){ |
131 | 138 |
classifications = CdmStore.getService(IClassificationService.class).list(null, null, null, null, null); |
... | ... | |
143 | 150 |
} |
144 | 151 |
} |
145 | 152 |
|
146 |
model = CdmStore.getService(IClassificationService.class).getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(selectedClassification.getUuid(), excludeTaxa); |
|
153 |
model = CdmStore.getService(IClassificationService.class).getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(selectedClassification.getUuid(), excludeTaxa, limitOfInitialElements, pattern);
|
|
147 | 154 |
} |
148 | 155 |
|
149 | 156 |
/** {@inheritDoc} */ |
Also available in: Unified diff
use the CdmFilteredSelectionDialog