Now using safer means to gain access to an editor's containing shell
than previously.
refs #7349
Change-Id: I0c5ff9711703608fd34a17cc474ed9490e5ab4d5
}
private static void scheduleEditorClose(IEditorPart editorPart) {
- SWTUtils.asyncExec(editorPart.getSite().getShell(), () -> {
+ if (editorPart == null)
+ return;
+ SWTUtils.asyncExec(editorPart.getSite().getWorkbenchWindow().getShell(), () -> {
// Don't have to check isDisposed since closeEditor
// will ignore already closed editor parts.
WorkbenchUtils.closeEditor(editorPart, false);