for (Object o : (Collection<?>)objectAffectedByOperation) {
if(o instanceof TermVocabularyDto){
contentProvider.removeVocabularyFromCache((TermVocabularyDto) o);
- viewer.refresh(o);
}
else if(o instanceof TermDto){
contentProvider.removeVocabularyFromCache(((TermDto) o).getVocabularyDto());
- viewer.refresh(((TermDto) o).getVocabularyDto());
- viewer.refresh(o);
itemsToSelect.add((TermDto) o);
}
}
}
if(objectAffectedByOperation instanceof TermVocabularyDto){
contentProvider.removeVocabularyFromCache((TermVocabularyDto) objectAffectedByOperation);
- viewer.refresh();
itemsToSelect.add((AbstractTermDto) objectAffectedByOperation);
}
else if(objectAffectedByOperation instanceof TermDto){
TermDto termDto = (TermDto) objectAffectedByOperation;
itemsToSelect.add(termDto);
contentProvider.removeVocabularyFromCache(termDto.getVocabularyDto());
- viewer.refresh(termDto.getVocabularyDto());
- }
- else{
- viewer.refresh(objectAffectedByOperation);
}
if(!itemsToSelect.isEmpty()){
StructuredSelection selection = new StructuredSelection(itemsToSelect);
viewer.expandToLevel(termDto, 1);
}
}
+ viewer.refresh();
return true;
}
if(term.isInstanceOf(DefinedTermBase.class)){
DefinedTermBase definedTermBase = (DefinedTermBase) term;
CdmStore.getService(ITermService.class).merge(definedTermBase);
- viewer.refresh(TermDto.fromTerm(definedTermBase));
}
else if(term.isInstanceOf(TermVocabulary.class)){
TermVocabulary voc = (TermVocabulary) term;
CdmStore.getService(IVocabularyService.class).merge(voc);
- viewer.refresh(new TermVocabularyDto(voc.getUuid(), voc.getRepresentations(), voc.getTermType()));
}
}
setDirty(false);
input.initialiseVocabularies();
changedTerms.clear();
+ viewer.refresh();
EventUtility.postEvent(WorkbenchEventConstants.REFRESH_SUPPLEMENTAL, true);
}