try {
IWorkbenchWindow window = workbench.openWorkbenchWindow(EOModelerPerspectiveFactory.EOMODELER_PERSPECTIVE_ID, null);
window.getActivePage().openEditor(new FileEditorInput(editorFile), EOModelEditor.EOMODEL_EDITOR_ID);
// MS: This is super hacky, but having a console open in the entity modeler perspective is fucking annoying.
// So we're just going to forcefully close the thing.
window.getPartService().addPartListener(new IPartListener() {
public void partOpened(final IWorkbenchPart part) {
if ("org.eclipse.ui.console.ConsoleView".equals(part.getSite().getId())) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
part.getSite().getPage().hideView((IViewPart)part);