import org.eclipse.core.runtime.IStatus;
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
-import eu.etaxonomy.cdm.model.reference.ReferenceBase;
+import eu.etaxonomy.cdm.model.reference.Reference;
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
-import eu.etaxonomy.cdm.model.taxon.TaxonomicTree;
+import eu.etaxonomy.cdm.model.taxon.Classification;
import eu.etaxonomy.taxeditor.store.CdmStore;
/**
*/
public class SaveClassificationOperation extends AbstractPersistentPostOperation {
- private TaxonomicTree classification;
+ private Classification classification;
/**
* <p>Constructor for SaveClassificationOperation.</p>
* @param postOperationEnabled a {@link eu.etaxonomy.taxeditor.operations.IPostOperationEnabled} object.
* @param conversationEnabled a {@link eu.etaxonomy.cdm.api.conversation.IConversationEnabled} object.
*/
- public SaveClassificationOperation(String label, IUndoContext undoContext, TaxonomicTree classification,
+ public SaveClassificationOperation(String label, IUndoContext undoContext, Classification classification,
IPostOperationEnabled postOperationEnabled,
IConversationEnabled conversationEnabled) {
super(label, undoContext, postOperationEnabled, conversationEnabled);
monitor.worked(20);
if(classification.getReference() == null){
- ReferenceBase reference = ReferenceFactory.newGeneric();
+ Reference reference = ReferenceFactory.newGeneric();
reference.setTitleCache(classification.getTitleCache());
classification.setReference(reference);
}
- CdmStore.getTaxonTreeService().saveOrUpdate(classification);
+ CdmStore.getClassificationService().saveOrUpdate(classification);
monitor.worked(40);