getTreeViewer().refresh(_entity, true); Object[] expandedElements = getTreeViewer().getExpandedElements(); for (int expandedElementNum = 0; expandedElementNum < expandedElements.length; expandedElementNum++) { if (expandedElements[expandedElementNum] instanceof EORelationshipPath) { EORelationshipPath relationshipPath = (EORelationshipPath) expandedElements[expandedElementNum]; if (relationshipPath.getChildRelationship().getEntity().equals(_entity)) { getTreeViewer().refresh(relationshipPath, true);
TreeViewer treeViewer = getTreeViewer(); if (treeViewer != null) { treeViewer.refresh(_entity, true); Object[] expandedElements = getTreeViewer().getExpandedElements(); for (int expandedElementNum = 0; expandedElementNum < expandedElements.length; expandedElementNum++) { if (expandedElements[expandedElementNum] instanceof EORelationshipPath) { EORelationshipPath relationshipPath = (EORelationshipPath) expandedElements[expandedElementNum]; if (relationshipPath.getChildRelationship().getEntity().equals(_entity)) { getTreeViewer().refresh(relationshipPath, true); }
  protected void refreshRelationshipsForEntity(EOEntity _entity) {    getTreeViewer().refresh(_entity, true);    Object[] expandedElements = getTreeViewer().getExpandedElements();    for (int expandedElementNum = 0; expandedElementNum < expandedElements.length; expandedElementNum++) {      if (expandedElements[expandedElementNum] instanceof EORelationshipPath) {        EORelationshipPath relationshipPath = (EORelationshipPath) expandedElements[expandedElementNum];        if (relationshipPath.getChildRelationship().getEntity().equals(_entity)) {          getTreeViewer().refresh(relationshipPath, true);        }      }    }  }