String changedPropertyName = _event.getPropertyName(); if (EOModel.ENTITIES.equals(changedPropertyName)) {  TreeViewer treeViewer = getTreeViewer(); if (!treeViewer.getTree().isDisposed()) {
TreeViewer treeViewer = getTreeViewer(); if (treeViewer != null && !treeViewer.getTree().isDisposed()) { String changedPropertyName = _event.getPropertyName(); if (EOModel.ENTITIES.equals(changedPropertyName) || EOModel.STORED_PROCEDURES.equals(changedPropertyName)) {
    public void propertyChange(PropertyChangeEvent _event) {      String changedPropertyName = _event.getPropertyName();      if (EOModel.ENTITIES.equals(changedPropertyName)) {        //getTreeViewer().refresh(true);        TreeViewer treeViewer = getTreeViewer();        if (!treeViewer.getTree().isDisposed()) {          treeViewer.refresh(true);          refreshPropertyChangeListeners();        }      }    }