Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Loading twice the same xmi file
Loading twice the same xmi file [message #1256348] Tue, 25 February 2014 10:33 Go to next message
simalps simalp is currently offline simalps simalpFriend
Messages: 1
Registered: February 2014
Junior Member
Hello, do you know which is the best way to obtain the same instance object when loading twice the same xmi file?

example:
MyClass object1 = EcoreHelper.load("file.xmi");
MyClass object2 = EcoreHelper.load("file.xmi");

==> object1==object2 is true

(i.e. where EcoreHelper is a class that contains my ecore frill utilities)

Thank you!
Re: Loading twice the same xmi file [message #1256479 is a reply to message #1256348] Tue, 25 February 2014 13:29 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Comments below.

On 25/02/2014 2:24 PM, simalps simalp wrote:
> Hello, do you know which is the best way to obtain the same instance
> object when loading twice the same xmi file?
Use one resource set.
>
> example: MyClass object1 = EcoreHelper.load("file.xmi"); MyClass
> object2 = EcoreHelper.load("file.xmi");
>
> ==> object1==object2 is true
>
> (i.e. where EcoreHelper is a class that contains my ecore frill
> utilities)
>
> Thank you!


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:To fragment an EMF model and partially load the model
Next Topic:GWT EMF reflective editor
Goto Forum:
  


Current Time: Sat Apr 20 04:16:12 GMT 2024

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

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

Back to the top