Examples of EORelationshipPath


Examples of org.objectstyle.wolips.eomodeler.core.model.EORelationshipPath

      text = attribute.getName();
    } else if (_element instanceof EORelationship) {
      EORelationship relationship = (EORelationship) _element;
      text = relationship.getName();
    } else if (_element instanceof EORelationshipPath) {
      EORelationshipPath relationshipPath = (EORelationshipPath) _element;
      text = relationshipPath.getChildRelationship().getName();
    } else if (_element instanceof EOAttributePath) {
      EOAttributePath attributePath = (EOAttributePath) _element;
      text = attributePath.getChildAttribute().getName();
    } else if (_element instanceof EOFetchSpecification) {
      EOFetchSpecification fetchSpec = (EOFetchSpecification) _element;
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EORelationshipPath

      }
      children = entityChildren.toArray();
    } else if (_parentElement instanceof EORelationship) {
      EORelationship relationship = (EORelationship) _parentElement;
      Set<AbstractEOAttributePath> relationshipPathChildren = new TreeSet<AbstractEOAttributePath>(new EOSortableEOModelObjectComparator());
      relationshipPathChildren.addAll(Arrays.asList(new EORelationshipPath(null, relationship).getChildren()));
      children = relationshipPathChildren.toArray();
    } else if (_parentElement instanceof EORelationshipPath) {
      EORelationshipPath relationshipPath = (EORelationshipPath) _parentElement;
      Set<AbstractEOAttributePath> relationshipPathChildren = new TreeSet<AbstractEOAttributePath>(new EOSortableEOModelObjectComparator());
      relationshipPathChildren.addAll(Arrays.asList(relationshipPath.getChildren()));
      children = relationshipPathChildren.toArray();
    } else if (_parentElement instanceof EOStoredProcedure) {
      EOStoredProcedure storedProcedure = (EOStoredProcedure) _parentElement;
      Set<EOArgument> arguments = new TreeSet<EOArgument>(new EOSortableEOModelObjectComparator());
      arguments.addAll(storedProcedure.getArguments());
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EORelationshipPath

    } else if (_element instanceof EODatabaseConfig) {
      parent = ((EODatabaseConfig) _element).getModel();
    } else if (_element instanceof EOArgument) {
      parent = ((EOArgument) _element).getStoredProcedure();
    } else if (_element instanceof AbstractEOAttributePath) {
      EORelationshipPath parentRelationshipPath = ((AbstractEOAttributePath) _element).getParentRelationshipPath();
      if (parentRelationshipPath == null) {
        parent = ((AbstractEOAttributePath) _element).getChildIEOAttribute().getEntity();
      } else {
        parent = parentRelationshipPath;
      }
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EORelationshipPath

      text = attribute.getName();
    } else if (_element instanceof EORelationship) {
      EORelationship relationship = (EORelationship) _element;
      text = relationship.getName();
    } else if (_element instanceof EORelationshipPath) {
      EORelationshipPath relationshipPath = (EORelationshipPath) _element;
      text = relationshipPath.getChildRelationship().getName();
    } else if (_element instanceof EOAttributePath) {
      EOAttributePath attributePath = (EOAttributePath) _element;
      text = attributePath.getChildAttribute().getName();
    } else if (_element instanceof EOFetchSpecification) {
      EOFetchSpecification fetchSpec = (EOFetchSpecification) _element;
View Full Code Here

Examples of org.objectstyle.wolips.eomodeler.core.model.EORelationshipPath

    if (treeViewer != null) {
      treeViewer.refresh(entity, true);
      Object[] expandedElements = treeViewer.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)) {
            treeViewer.refresh(relationshipPath, true);
          }
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.