EOModelEditorInput input = (EOModelEditorInput) myEntitiesTableEditor.getEditorInput();
  public void resourceChanged(final IResourceChangeEvent _event) {    if (_event.getType() == IResourceChangeEvent.PRE_CLOSE) {      Display.getDefault().asyncExec(new Runnable() {        public void run() {          IWorkbenchPage[] pages = getSite().getWorkbenchWindow().getPages();          for (int pageNum = 0; pageNum < pages.length; pageNum++) {            EOModelEditorInput input = (EOModelEditorInput) myEntitiesTableEditor.getEditorInput();            if (input.getFile().getProject().equals(_event.getResource())) {              IEditorPart editorPart = pages[pageNum].findEditor(input);              pages[pageNum].closeEditor(editorPart, true);            }          }        }      });    }  }