Examples of eContainingFeature()


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

          EObject obj = s.resolveSemanticElement();
          if (objectClass.isInstance(obj)) {
            // check containing feature name
            DecisionNode e = (DecisionNode) obj;
            if (name == null || (e.getName() != null && e.getName().equals(name))) {
              if (containingFeature == null || containingFeature.equals(obj.eContainingFeature())) {
              assertNotNull(s);
              return s;
              }
            }
            found += e.getName() + "[" + obj.eContainingFeature() + "],";
View Full Code Here

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

              if (containingFeature == null || containingFeature.equals(obj.eContainingFeature())) {
              assertNotNull(s);
              return s;
              }
            }
            found += e.getName() + "[" + obj.eContainingFeature() + "],";
          }
        }
      }
    }
View Full Code Here

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

        List<EObject> result = new ArrayList<EObject>();
        while( it.hasNext() )
        {
            EObject containee = it.next();
            if( containee.eContainingFeature() != null )
            {
                List<EObject> elements = getAllChildren(containee);
                if( !result.contains(containee) ) result.add(containee);
               
                for(int i = 0; i < elements.size(); i++)
View Full Code Here

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

      return Status.CANCEL_STATUS;
   
    monitor.subTask("Removing phantom edges");
    for (EObject obj : elementsToDelete) {
      if (obj.eContainer() != null) {
        handler.deleteElement(obj, obj.eContainer(), obj.eContainingFeature());
      }
    }
    monitor.worked(30);

    if (monitor.isCanceled())
View Full Code Here

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

    if(currentNode != null) {
      semantic = currentNode.getSemanticElement();
      if(semantic != null) {
        if(semantic instanceof StringExpression == false) {

          feature = semantic.eContainingFeature();
          // if(feature == null) {
          // System.err.println("Null feature");
          // }
          // disqualify proposals for variable in assignment lhs. (this is what creates a variable, suggestions
          // are meaningless). Note that feature may be null here (it is at least not a known lhs in assignment).
View Full Code Here

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

      {
        List<String> uriFragmentPath = new ArrayList<String>();
        boolean isContained = false;
        for (InternalEObject container = internalEObject.eInternalContainer(); container != null; container = internalEObject.eInternalContainer())
        {
          uriFragmentPath.add(container.eURIFragmentSegment(internalEObject.eContainingFeature(), internalEObject));
          internalEObject = container;
          if (container.eDirectResource() == this || unloadingContents != null && unloadingContents.contains(container))
          {
            isContained = true;
            break;
View Full Code Here

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

      {
        List<String> uriFragmentPath = new ArrayList<String>();
        boolean isContained = false;
        for (InternalEObject container = internalEObject.eInternalContainer(); container != null; container = internalEObject.eInternalContainer())
        {
          uriFragmentPath.add(container.eURIFragmentSegment(internalEObject.eContainingFeature(), internalEObject));
          internalEObject = container;
          if (container.eDirectResource() == this || unloadingContents != null && unloadingContents.contains(container))
          {
            isContained = true;
            break;
View Full Code Here

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

          InternalEObject internalEObject = (InternalEObject)eObject;
          List<String> uriFragmentPath = new ArrayList<String>();
          HashSet<InternalEObject> visited = new HashSet<InternalEObject>();
          for (InternalEObject container = internalEObject.eInternalContainer(); container != null && visited.add(container); container = internalEObject.eInternalContainer())
          {
            uriFragmentPath.add(container.eURIFragmentSegment(internalEObject.eContainingFeature(), internalEObject));
            internalEObject = container;
          }
     
          StringBuffer result = new StringBuffer("#//");
     
View Full Code Here

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

      {
        InternalEObject internalEObject = (InternalEObject)root;
        List<String> uriFragmentPath = new ArrayList<String>();
        for (InternalEObject container = internalEObject.eInternalContainer(); container != null; container = internalEObject.eInternalContainer())
        {
          uriFragmentPath.add(container.eURIFragmentSegment(internalEObject.eContainingFeature(), internalEObject));
          internalEObject = container;
          Resource resource = container.eDirectResource();
          if (resource != null)
          {
            int index = resource.getContents().indexOf(container);
View Full Code Here

Examples of org.openiaml.model.model.NamedElement.eContainingFeature()

   */
  public String formatElement(EObject element) {
    if (element instanceof NamedElement) {
      NamedElement ne = (NamedElement) element;
      if (ne instanceof Event && ne.getName() == null) {
        return ne.eClass().getName() + " " + ne.eContainingFeature().getName();
      } else {
        return ne.eClass().getName() + " '" + ne.getName() + "'";
      }
    }
    return element.toString();
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.