EOModel eoModel = existingEditorInput.getModel();
EOModel eoModel = editor.getModel();
  public boolean matches(IEditorReference _editorRef, IEditorInput _input) {    boolean matches = false;    String editorId = _editorRef.getId();    if (editorId == null) {      matches = false;    }    else if (!editorId.equals(EOModelEditor.EOMODEL_EDITOR_ID)) {      matches = false;    }    else if (_input instanceof IFileEditorInput) {      IFile file = ((IFileEditorInput) _input).getFile();      IContainer container = file.getParent();      if ("eomodeld".equals(container.getFileExtension())) { //$NON-NLS-1$        EOModelEditor editor = (EOModelEditor) _editorRef.getEditor(true);        EOModelEditorInput existingEditorInput = (EOModelEditorInput) editor.getEditorInput();        IContainer existingEOModelFolder = existingEditorInput.getFile().getParent();        IFileEditorInput possibleEditorInput = (IFileEditorInput) _input;        IFile possibleEditorFile = possibleEditorInput.getFile();        IContainer possibleEOModelFolder = possibleEditorFile.getParent();        matches = existingEOModelFolder.equals(possibleEOModelFolder);        if ("plist".equals(possibleEditorFile.getFileExtension())) { //$NON-NLS-1$          String entityName = possibleEditorFile.getName();          entityName = entityName.substring(0, entityName.indexOf('.'));          EOModel eoModel = existingEditorInput.getModel();          EOEntity entity = eoModel.getEntityNamed(entityName);          editor.setSelectedEntity(entity);        }      }    }    return matches;  }