static IStatus openEditor(final IDiagram workingModel) {
try {
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow activeWorkbenchWindow = workbench.getActiveWorkbenchWindow();
final IWorkbenchPage activePage = activeWorkbenchWindow.getActivePage();
activePage.openEditor(new OnMemoryEditorInput(workingModel), Editor.ID, true);
} catch (PartInitException e) {
Status status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Oops ! Stupid thing happends when opening editor : "
+ e.getLocalizedMessage(), e);
LOGGER.log(status);
return status;