Package org.eclipse.emf.ecore

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


                mixedTargets.push(null);
                types.push(simpleFeature);
                text = new StringBuffer();
              }
            }
            else if (!childObject.eIsProxy())
            {
              text = new StringBuffer();
            }
          }
        }
View Full Code Here


  {
    boolean result = true;
    for (EContentsEList.FeatureIterator<EObject> i = (EContentsEList.FeatureIterator<EObject>)eObject.eCrossReferences().iterator(); i.hasNext(); )
    {
      EObject eCrossReferenceObject = i.next();
      if (eCrossReferenceObject.eIsProxy())
      {
        result = false;
        if (diagnostics != null)
        {
          diagnostics.add
View Full Code Here

    if (eObject.eResource() != null)
    {
      for (EContentsEList.FeatureIterator<EObject> i = (EContentsEList.FeatureIterator<EObject>)eObject.eCrossReferences().iterator(); i.hasNext(); )
      {
        EObject eCrossReferenceObject = i.next();
        if (eCrossReferenceObject.eResource() == null && !eCrossReferenceObject.eIsProxy() && !i.feature().isTransient())
        {
          result = false;
          if (diagnostics != null)
          {
            diagnostics.add
View Full Code Here

        //no linking in comments
        return;
      }
      Region region = new Region(node.getOffset(), node.getLength());
      if(crossLinkedEObject instanceof Resource){
        if(!crossLinkedEObject.eIsProxy()){
          //links to all known local definitions
          QualifiedName name = nameProvider.getFullyQualifiedName(crossLinkedEObject);
          IResourceDescriptions index = indexService.getResourceDescriptions(resource);
          Iterable<IEObjectDescription> matches = index.getExportedObjectsByType(XturtlePackage.Literals.RESOURCE);//, name, false);
          for (final IEObjectDescription desc : matches) {
View Full Code Here

      int offset) {
    Pair<EObject, IRegion> temp = super.getXtextElementAt(resource, offset);
    if(temp==null){
      EObject crossLinkedEObject = eObjectAtOffsetHelper.resolveCrossReferencedElementAt(resource, offset);
      if (crossLinkedEObject != null) {
        if (crossLinkedEObject.eIsProxy()) {
          EObject o = eObjectAtOffsetHelper.resolveContainedElementAt(resource, offset);
          if (o != null) {
            ICompositeNode node = NodeModelUtils.getNode(o);
            IRegion region = new Region(node.getOffset(),node.getLength());
            if (TextUtilities.overlaps(region, new Region(offset, 0)))
View Full Code Here

  {
    boolean result = true;
    for (EContentsEList.FeatureIterator<EObject> i = (EContentsEList.FeatureIterator<EObject>)eObject.eCrossReferences().iterator(); i.hasNext(); )
    {
      EObject eCrossReferenceObject = i.next();
      if (eCrossReferenceObject.eIsProxy())
      {
        result = false;
        if (diagnostics != null)
        {
          diagnostics.add
View Full Code Here

    if (eObject.eResource() != null)
    {
      for (EContentsEList.FeatureIterator<EObject> i = (EContentsEList.FeatureIterator<EObject>)eObject.eCrossReferences().iterator(); i.hasNext(); )
      {
        EObject eCrossReferenceObject = i.next();
        if (eCrossReferenceObject.eResource() == null && !eCrossReferenceObject.eIsProxy() && !i.feature().isTransient())
        {
          result = false;
          if (diagnostics != null)
          {
            diagnostics.add
View Full Code Here

      return "Unresolved";
    }
    IEObjectDescription ref = xrefs.get(0);

    EObject x = ref.getEObjectOrProxy();
    if(x.eIsProxy())
      x = EcoreUtil.resolve(x, o);
    return document(x);

  }
View Full Code Here

   */
  protected Pair<EObject, IRegion> getXtextElementAt(XtextResource resource, final int offset) {
    // check for cross reference
    EObject crossLinkedEObject = eObjectAtOffsetHelper.resolveCrossReferencedElementAt(resource, offset);
    if (crossLinkedEObject != null) {
      if (!crossLinkedEObject.eIsProxy()) {
        IParseResult parseResult = resource.getParseResult();
        if (parseResult != null) {
          ILeafNode leafNode = NodeModelUtils.findLeafNodeAtOffset(parseResult.getRootNode(), offset);
          if(leafNode != null && leafNode.isHidden() && leafNode.getOffset() == offset) {
            leafNode = NodeModelUtils.findLeafNodeAtOffset(parseResult.getRootNode(), offset - 1);
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.