}
}
- private static final ConnectionStyle DEFAULT_CONNECTION_STYLE = new ExampleConnectionStyle();
+ private static final ConnectionStyle DEFAULT_CONNECTION_STYLE = new BasicConnectionStyle(Color.BLACK, Color.BLACK, 3, ExampleConnectionStyle.SOLID, ExampleConnectionStyle.SOLID, 8);
/**
* @param graph
}
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);