Package org.eclipse.emf.ecore

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


        //
        verify("eAttribute",eAttribute,true);
        //
        // Get URI
        //
        URI eURI = eImpl.eResource().getURI();       
        //
        // Verify
        //
        verify("eURI",eURI,true);
        //
View Full Code Here


        //
        verify("eObject",eImpl,true,true,true);
        //
        // Get URI
        //
        URI eURI = eImpl.eResource().getURI();
        //
        // Verify eURI
        //
        verify("eURI",eURI,true);
        //
View Full Code Here

    }
    if(p == null)
      return 0; // not in an assignment expression

    // p is a BinaryExpression at this point, we want it's parent being an abstract Definition
    final String definitionFragment = p.eResource().getURIFragment(p);
    final String definitionURI = p.eResource().getURI().toString();

    int removedCount = 0;
    ListIterator<IEObjectDescription> litor = descs.listIterator();
    while(litor.hasNext()) {
View Full Code Here

    if(p == null)
      return 0; // not in an assignment expression

    // p is a BinaryExpression at this point, we want it's parent being an abstract Definition
    final String definitionFragment = p.eResource().getURIFragment(p);
    final String definitionURI = p.eResource().getURI().toString();

    int removedCount = 0;
    ListIterator<IEObjectDescription> litor = descs.listIterator();
    while(litor.hasNext()) {
      IEObjectDescription x = litor.next();
View Full Code Here

    // p is a DefinitionArgument at this point, we want it's parent being an abstract Definition
    EObject d = p.eContainer();
    if(d == null)
      return 0; // broken model
    d = d.eContainer();
    final String definitionFragment = d.eResource().getURIFragment(d);
    final String definitionURI = d.eResource().getURI().toString();

    int removedCount = 0;
    ListIterator<IEObjectDescription> litor = descs.listIterator();
    while(litor.hasNext()) {
View Full Code Here

    EObject d = p.eContainer();
    if(d == null)
      return 0; // broken model
    d = d.eContainer();
    final String definitionFragment = d.eResource().getURIFragment(d);
    final String definitionURI = d.eResource().getURI().toString();

    int removedCount = 0;
    ListIterator<IEObjectDescription> litor = descs.listIterator();
    while(litor.hasNext()) {
      IEObjectDescription x = litor.next();
View Full Code Here

        Map<Resource, Iterable<IEObjectDescription>> exportedObjectsByResourceCache = Maps.newHashMap();
        for(Entry<EObject, Collection<IEObjectDescription>> entry : objectsWithXRef.entrySet()) {
          for(IEObjectDescription targetCandidate : entry.getValue())
            if(p.apply(targetCandidate)) {
              EObject eObj = entry.getKey();
              Resource r = eObj.eResource();
              Iterable<IEObjectDescription> exported = exportedObjectsByResourceCache.get(r);
              if(exported == null)
                exportedObjectsByResourceCache.put(r, exported = getExportedElements(r));
              // find the exported container closest to the source referencing the target
              IEObjectDescription closestExported = findClosestExportedContainerDescriptor(eObj, exported);
View Full Code Here

    // p is a DefinitionArgument at this point, we want it's parent being an abstract Definition
    EObject d = p.eContainer();
    if(d == null)
      return 0; // broken model
    d = d.eContainer();
    final String definitionFragment = d.eResource().getURIFragment(d);
    final String definitionURI = d.eResource().getURI().toString();

    int removedCount = 0;
    ListIterator<IEObjectDescription> litor = descs.listIterator();
    while(litor.hasNext()) {
View Full Code Here

    EObject d = p.eContainer();
    if(d == null)
      return 0; // broken model
    d = d.eContainer();
    final String definitionFragment = d.eResource().getURIFragment(d);
    final String definitionURI = d.eResource().getURI().toString();

    int removedCount = 0;
    ListIterator<IEObjectDescription> litor = descs.listIterator();
    while(litor.hasNext()) {
      IEObjectDescription x = litor.next();
View Full Code Here

        QualifiedName fqn = converter.toQualifiedName(issueString);
        if(fqn.getSegmentCount() > 1) {
          ppFinder.configure(varExpr);
          String[] proposals = proposer.computeProposals(issueString, //
            ppFinder.getExportedDescriptions(), //
            searchPathProvider.get(varExpr.eResource()), PARAMS_AND_VARIABLES);
          for(String s : proposals)
            acceptor.accept(issue, "Change to '$" + s + "'", "Did you mean '$" + s + "'", null, //
              new ReplacingModification(issue.getOffset() + (dollarVar
                  ? 1
                  : 0), issueString.length(), s));
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.