IEditorInput input = getEditorInput();
  protected void updatePartName() {    IEditorInput input = getEditorInput();    String partName;    if (input != null) {      EOModel model = ((EOModelEditorInput) input).getModel();      partName = model.getName();    }    else {      partName = Messages.getString("EOModelEditor.partName"); //$NON-NLS-1$    }    setPartName(partName);  }