Package org.eclipse.emf.ecore

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


          EObject obj = s.resolveSemanticElement();
          if (objectClass.isInstance(obj)) {
            // check containing feature name
            NamedElement e = (NamedElement) 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


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

          EObject obj = s.resolveSemanticElement();
          if (objectClass.isInstance(obj)) {
            // check containing feature name
            ENamedElement e = (ENamedElement) 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

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

          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

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

        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

      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

    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

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.