Skip to main content


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 16:29 Go to next message
Eclipse UserFriend
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 19:06 Go to previous message
Eclipse UserFriend
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:Introducing Eclipse Plugin Central
Next Topic:Project windows and adding buttons
Goto Forum:
  


Current Time: Thu Apr 25 11:28:31 GMT 2024

Powered by FUDForum. Page generated in 0.03107 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top