EOModelEditorInput input = (EOModelEditorInput) getEditorInput(); if (input != null) { EOModel model = input.getModel();
IEditorInput input = getEditorInput(); if (input != null && myModel != null) {
  public void doSave(IProgressMonitor _monitor) {    //MessageDialog.openInformation(Display.getCurrent().getActiveShell(), "Not Yet", "Yeah, it can, but I'm not going to let you. It's safer for all of us at the moment.");    /**/    try {      EOModelEditorInput input = (EOModelEditorInput) getEditorInput();      if (input != null) {        EOModel model = input.getModel();        Set failures = new HashSet();        model.verify(failures);        handleModelErrors(failures);        IFile originalFile = input.getFile();        IContainer originalFolder = originalFile.getParent();        model.saveToFolder(originalFolder.getParent().getLocation().toFile());        model.setDirty(false);        originalFolder.refreshLocal(IResource.DEPTH_INFINITE, _monitor);      }    }    catch (IOException e) {      e.printStackTrace();    }    catch (CoreException e) {      e.printStackTrace();    }    /**/  }