Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » Emf Resources and Unique Xmi:ids
Emf Resources and Unique Xmi:ids [message #35299] Tue, 06 June 2006 12:29 Go to next message
Eclipse User
Originally posted by: 8BURNSFR.ie.ibm.com

org.eclipse.emf.ecore.resource.ResourceSet

I create a org.eclipse.emf.ecore.resource.ResourceSet. I use this to
create a org.eclipse.emf.ecore.resource.Resource. I add stuff to the
contents of the Resource using resource.getContents().add(?????); When
the contents are written to the Resource xmi:id's are given to the
elements and their children.

Is it possible that emf would give/generate the same xmi:id for different
elements in different resources?? Are xmi:ids unique across all Resources?
Re: Emf Resources and Unique Xmi:ids [message #35333 is a reply to message #35299] Tue, 06 June 2006 15:06 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Frances,

I've answered this on the EMF newsgroup which is a better place to ask
questions about EMF.


Frances Burns wrote:

> org.eclipse.emf.ecore.resource.ResourceSet
>
> I create a org.eclipse.emf.ecore.resource.ResourceSet. I use this to
> create a org.eclipse.emf.ecore.resource.Resource. I add stuff to the
> contents of the Resource using resource.getContents().add(?????);
> When the contents are written to the Resource xmi:id's are given to
> the elements and their children.
>
> Is it possible that emf would give/generate the same xmi:id for
> different elements in different resources?? Are xmi:ids unique across
> all Resources?
>
>
Previous Topic:Eclipse Party at JavaOne
Next Topic:Project windows and adding buttons
Goto Forum:
  


Current Time: Fri Aug 22 03:59:36 EDT 2014

Powered by FUDForum. Page generated in 0.01497 seconds