Project

General

Profile

« Previous | Next » 

Revision ba5714f0

Added by Patrick Plitzner about 3 years ago

ref #8263 Only refresh affected elements after operation

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/e4/DefinedTermEditorE4.java
143 143
	            || objectAffectedByOperation instanceof TermVocabulary){
144 144
	        input.initialiseVocabularies();
145 145
	    }
146
	    viewer.refresh();
146
	    if(objectAffectedByOperation instanceof TermDto){
147
	        viewer.refresh(((TermDto) objectAffectedByOperation).getVocabularyDto());
148
	    }
149
	    else{
150
	        viewer.refresh(objectAffectedByOperation);
151
	    }
147 152
		if(objectAffectedByOperation != null){
148 153
			StructuredSelection selection = new StructuredSelection(objectAffectedByOperation);
149 154
            viewer.setSelection(selection);
......
171 176
                CdmStore.getService(IVocabularyService.class).merge((TermVocabulary) term);
172 177
            }
173 178
		}
174
        changedTerms.clear();
175 179
		setDirty(false);
176 180
		input.initialiseVocabularies();
177 181
		viewer.refresh();
182
		changedTerms.clear();
178 183
		EventUtility.postEvent(WorkbenchEventConstants.REFRESH_SUPPLEMENTAL, true);
179 184
	}
180 185

  

Also available in: Unified diff