Revision da02b0f9
Added by Pepe Ciardelli almost 16 years ago
eclipseprojects/eu.etaxonomy.taxeditor/src/eu/etaxonomy/taxeditor/actions/ActionSaveTaxon.java | ||
---|---|---|
25 | 25 |
// If this is a new taxon, add it to the recent names list; |
26 | 26 |
// if it is already in the tree, remove then re-add it |
27 | 27 |
// to force a re-sort |
28 |
if (!TaxEditorPlugin.getDefault().getObservableTaxonTreeList().contains(taxon)) {
|
|
28 |
if (!TaxEditorPlugin.getDefault().getObservableRecentNamesList().contains(taxon)) {
|
|
29 | 29 |
TaxEditorPlugin.getDefault().getObservableRecentNamesList().add(0, taxon); |
30 |
} else {
|
|
31 |
TaxEditorPlugin.getDefault().getObservableTaxonTreeList().remove(taxon); |
|
32 |
}
|
|
33 |
TaxEditorPlugin.getDefault().getObservableTaxonTreeList().add(taxon);
|
|
30 |
} |
|
31 |
|
|
32 |
TaxEditorPlugin.getDefault().removeSessionTaxon(taxon);
|
|
33 |
TaxEditorPlugin.getDefault().addSessionTaxon(taxon);
|
|
34 | 34 |
|
35 | 35 |
// Save the taxon to the CDM |
36 | 36 |
TaxEditorPlugin.getDefault().getCdmApp().getTaxonService().saveTaxon(taxon); |
Also available in: Unified diff
Taxonomic tree provider substantially re-programmed, cleaned up.