Package org.eclipse.emf.ecore

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


      assert diagramFacet.eResource() != null;
      diagramFacet.eResource().getContents().add(d);
      EObject container = diagramFacet.eContainer();
      while (container instanceof View) {
        ((View) container).persist();
        container = container.eContainer();
      }
      try {
        new WorkspaceModifyOperation() {
          protected void execute(IProgressMonitor monitor)
              throws CoreException, InvocationTargetException,
View Full Code Here


      if (!prefixNSMap.isEmpty()) {
        if (prefixNSMap.containsKey(prefix)) {
          return (String)prefixNSMap.get(prefix);
       
      } 
      context = context.eContainer();           
    }
    return null;   
 
 
  /**
 
View Full Code Here

        if (prefixNSMap.containsValue(namespaceURI)) {     
          BPELResource.NotifierMap nsPrefixMap = prefixNSMap.reserve();           
          return (String)nsPrefixMap.get(namespaceURI);
        }       
      }
      context = context.eContainer();
    }
    return null;
 
 
 
View Full Code Here

   
    while (context != null) {
      if (context instanceof Process) {
        return (Process) context;
      }
      context = context.eContainer();
    }
    return null;
  }
  /**
   * Return the closest Scope or Process objects from the EMF object
View Full Code Here

        return context;
      }
      if (context instanceof Process) {
        return context;
      }
      context = context.eContainer();
    }
    return null;
  }
 
 
View Full Code Here

          Map.Entry entry = (Map.Entry)i.next();
          if (!nsMap.containsKey(entry.getKey()))
            nsMap.put(entry.getKey(), entry.getValue());
        }
      }
      context = context.eContainer();
    }
    return nsMap;
  }               
 
 
View Full Code Here

          if (pl.getName().equals(partnerLinkName))
            return pl;
        }
      }
     
      container = container.eContainer()
   
    return null
  }

 
View Full Code Here

          CorrelationSet correlationSet = (CorrelationSet)it.next();
          if (correlationSet.getName().equals(correlationSetName))
            return correlationSet;
        }
      }
      container = container.eContainer();
    }
    return null;         
  }

  /**
 
View Full Code Here

  }
 
  protected QName getQName(org.eclipse.wst.wsdl.ExtensibilityElement element, String localName) {
    EObject container = null;
    for (container = element.eContainer(); container != null && !(container instanceof Definition); ) {
      container = container.eContainer();
    }
    if (container == null) {
      return null;
    }
    return new QName(((Definition)container).getTargetNamespace(), localName);
View Full Code Here

              prefix = (String)nsPrefixMap.get(namespace);
              if (prefix != null)
                break;
            }
          }
          context = context.eContainer();
        }       
        // if a prefix is not found for the namespaceURI, create a new prefix
        if (prefix == null)
          prefix = addNewRootPrefix("ns", namespace);
        if (prefix != null && !prefix.equals(""))
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.