Project

General

Profile

« Previous | Next » 

Revision dea9c1d7

Added by Patrick Plitzner about 3 years ago

ref #8263 Only refresh edited terms when saving

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/e4/DefinedTermEditorE4.java
170 170
		getConversationHolder().commit();
171 171
		for(TermBase term:changedTerms){
172 172
            if(term.isInstanceOf(DefinedTermBase.class)){
173
                CdmStore.getService(ITermService.class).merge((DefinedTermBase) term);
173
                DefinedTermBase definedTermBase = (DefinedTermBase) term;
174
                CdmStore.getService(ITermService.class).merge(definedTermBase);
175
                viewer.refresh(TermDto.fromTerm(definedTermBase));
174 176
            }
175 177
            else if(term.isInstanceOf(TermVocabulary.class)){
176
                CdmStore.getService(IVocabularyService.class).merge((TermVocabulary) term);
178
                TermVocabulary voc = (TermVocabulary) term;
179
                CdmStore.getService(IVocabularyService.class).merge(voc);
180
                viewer.refresh(new TermVocabularyDto(voc.getUuid(), voc.getRepresentations(), voc.getTermType()));
177 181
            }
178 182
		}
179 183
		setDirty(false);
180 184
		input.initialiseVocabularies();
181
		viewer.refresh();
182
		changedTerms.clear();
185
        changedTerms.clear();
183 186
		EventUtility.postEvent(WorkbenchEventConstants.REFRESH_SUPPLEMENTAL, true);
184 187
	}
185 188

  

Also available in: Unified diff