Revision 5e966d50
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java | ||
---|---|---|
71 | 71 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
72 | 72 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
73 | 73 |
import eu.etaxonomy.cdm.model.term.IEnumTerm; |
74 |
import eu.etaxonomy.taxeditor.editor.ITaxonEditor; |
|
75 | 74 |
import eu.etaxonomy.taxeditor.event.EventUtility; |
75 |
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants; |
|
76 | 76 |
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation; |
77 | 77 |
import eu.etaxonomy.taxeditor.operation.IFeedbackGenerator; |
78 | 78 |
import eu.etaxonomy.taxeditor.operation.IPostMoniteredOperationEnabled; |
... | ... | |
810 | 810 |
} |
811 | 811 |
taxaToUpdate.add(taxon); |
812 | 812 |
} |
813 |
|
|
814 |
Display.getDefault().asyncExec(new Runnable() { |
|
815 |
@Override |
|
816 |
public void run() { |
|
817 |
EPartService partService = TaxeditorStorePlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getService(EPartService.class); |
|
818 |
for (MPart part : partService.getParts()){ |
|
819 |
Object object = part.getObject(); |
|
820 |
boolean setFocus = false; |
|
821 |
// if (part == activePart){ |
|
822 |
// setFocus = true; |
|
823 |
// } |
|
824 |
if (object instanceof ITaxonEditor){ |
|
825 |
if (object != null ){ |
|
826 |
((ITaxonEditor)object).update(); |
|
827 |
|
|
828 |
} |
|
829 |
} |
|
830 |
|
|
831 |
} |
|
832 |
} |
|
833 |
}); |
|
834 |
|
|
813 |
EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, taxaToUpdate); |
|
835 | 814 |
} |
836 | 815 |
|
837 | 816 |
|
Also available in: Unified diff
ref #8197: fix delete of media in media view