Examples of eContainer()


Examples of org.eclipse.emf.ecore.EObject.eContainer()

   
    ConnectionStatement ret = null;
    if (base != null) {
      EObject e = base;
      do {
        e = e.eContainer();
        if (e instanceof ConnectionStatement) {
          ret = (ConnectionStatement) e;
          break;
        }
      } while (e != null);
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eContainer()

   
    ConnectionInitialization ret = null;
    if (base != null) {
      EObject e = base;
      do {
        e = e.eContainer();
        if (e instanceof ConnectionInitialization) {
          ret = (ConnectionInitialization) e;
          break;
        }
      } while (e != null);
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eContainer()

   
    LocalVariableStatement ret = null;
    if (base != null) {
      EObject e = base;
      do {
        e = e.eContainer();
        if (e instanceof LocalVariableStatement) {
          ret = (LocalVariableStatement) e;
          break;
        }
      } while (e != null);
View Full Code Here

Examples of org.eclipse.emf.ecore.ETypeParameter.eContainer()

        public EGenericType resolve(EGenericType eGenericType)
        {
          ETypeParameter eTypeParameter = eGenericType.getETypeParameter();
          if (eTypeParameter != null)
          {
            EObject eContainer = eTypeParameter.eContainer();
            EGenericType [] eGenericTypes  = (EGenericType[])data;
            for (int i = 0; i < size; ++i)
            {
              EGenericType otherEGenericType = eGenericTypes[i];
              if (otherEGenericType.getEClassifier() == eContainer)
View Full Code Here

Examples of org.eclipse.emf.ecore.InternalEObject.eContainer()

          return false;
        }
        else if (isContainment())
        {
          InternalEObject eObject = (InternalEObject)object;
          EObject eContainer = eObject.eContainer();
          boolean result =
            eContainer == owner &&
              (hasNavigableInverse() ?
                 eObject.eBaseStructuralFeatureID(eObject.eContainerFeatureID(), dataClass) == getInverseFeatureID() :
                 InternalEObject.EOPPOSITE_FEATURE_BASE - eObject.eContainerFeatureID() == getFeatureID());
View Full Code Here

Examples of org.eclipse.emf.ecore.impl.EReferenceImpl.eContainer()

        EReferenceImpl eimpl = (EReferenceImpl) bo;
        EClassifier eType = eimpl.getEType();
        if (eType instanceof AbstractNode) {
          AbstractNode target = (AbstractNode) eType;
          Activator.getLogger().debug("==== trying to zap the target: " + target);
          EObject eContainer = eimpl.eContainer();
          if (eContainer instanceof AbstractNode) {
            AbstractNode source = (AbstractNode) eContainer;
            Activator.getLogger().debug("==== trying to source: " + source + " -> target: " + target);
            source.removeConnection(target);
          }
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.Node.eContainer()

    // check to make sure all node are contained in a diagram
    if (operation instanceof ILayoutNodeOperation) {
      Iterator nodes = ((ILayoutNodeOperation)operation).getLayoutNodes().listIterator();
      if (nodes.hasNext()) {
        Node node = ((ILayoutNode)nodes.next()).getNode();
        View container = (View)node.eContainer();
        if (!(container instanceof Diagram))
          return false;
      }
    }
    else {
View Full Code Here

Examples of org.eclipse.graphiti.mm.pictograms.AnchorContainer.eContainer()

        srcNode = shapeToNode.get(source.eContainer());
      }
     
      Node tgtNode = shapeToNode.get(target);
      if (tgtNode == null) {
        tgtNode = shapeToNode.get(target.eContainer());
      }
      Edge edge = new Edge(srcNode, tgtNode);
      edge.data = connection;
      edgeList.add(edge);
    }
View Full Code Here

Examples of org.eclipse.graphiti.mm.pictograms.ContainerShape.eContainer()

                            businessValue, text.getFont());
                   
                    text.setHeight(2 + (dim.getHeight() *
                        businessValue.split("\n").length));
                    cs.getGraphicsAlgorithm().setHeight(text.getHeight());
                    if (cs.eContainer() instanceof ContainerShape) {
                      ((ContainerShape) cs.eContainer()
                          ).getGraphicsAlgorithm().setHeight(
                              text.getHeight() + 20);
                    }
                   
View Full Code Here

Examples of org.eclipse.graphiti.mm.pictograms.ContainerShape.eContainer()

                   
                    text.setHeight(2 + (dim.getHeight() *
                        businessValue.split("\n").length));
                    cs.getGraphicsAlgorithm().setHeight(text.getHeight());
                    if (cs.eContainer() instanceof ContainerShape) {
                      ((ContainerShape) cs.eContainer()
                          ).getGraphicsAlgorithm().setHeight(
                              text.getHeight() + 20);
                    }
                   
                    return 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.