import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
+import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
import eu.etaxonomy.cdm.model.common.CdmBase;
+import eu.etaxonomy.cdm.model.common.DefinedTermBase;
+import eu.etaxonomy.cdm.model.common.TermVocabulary;
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
import eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermSorter;
import eu.etaxonomy.taxeditor.editor.definedterm.TermContentProvider;
@Override
public boolean postOperation(CdmBase objectAffectedByOperation) {
- viewer.refresh();
+ if(objectAffectedByOperation.isInstanceOf(DefinedTermBase.class)){
+ TermVocabulary vocabulary = HibernateProxyHelper.deproxy(objectAffectedByOperation, DefinedTermBase.class).getVocabulary();
+ viewer.refresh(vocabulary);
+ }
+ else{
+ viewer.refresh();
+ }
if(objectAffectedByOperation != null){
viewer.setSelection(new StructuredSelection(objectAffectedByOperation));