if (myModel != null) { myEntities = new LinkedList(myModel.getEntities()); addPropertyChangeListeners(); }
addPropertyChangeListeners();
  public void setModel(EOModel _model) {    removePropertyChangeListeners();    myModel = _model;    if (myModel != null) {      myEntities = new LinkedList(myModel.getEntities());      addPropertyChangeListeners();    }    if (myTreeViewer != null) {      setInput(myTreeViewer);    }  }