Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFStore]How to create model element ID
[EMFStore]How to create model element ID [message #1384738] Fri, 30 May 2014 22:05 Go to next message
Roza Ghamari is currently offline Roza GhamariFriend
Messages: 82
Registered: January 2013
Member
Hi all,

I am trying to recreate my data by storing model element id's inside a project. I am assuming that these element ID's doesn't change when we checkout the project. First of all is this assumption correct? Seccond, if I want to store only the String ID that I get from ESModelElementId.getId() how can I create the ESModelElementId instance from this string again? I couldn't find any factories, all I have left right now is to iterate the objects and check their model elements, but I'd like to use the ESLocalProject.getModelElement(id) method.


Re: [EMFStore]How to create model element ID [message #1384928 is a reply to message #1384738] Tue, 03 June 2014 07:54 Go to previous messageGo to next message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Roza,

comments inline...

> I am assuming that these element ID's doesn't change when we
> checkout the project. First of all is this assumption correct?
Yes.
> Seccond,
> if I want to store only the String ID that I get from
> ESModelElementId.getId() how can I create the ESModelElementId instance
> from this string again?
There is only internal API for that so far:
ModelElementId modelElementId =
org.eclipse.emf.emfstore.internal.common.model.ModelFactory.createModelElementId();
new ESModelElementIdImpl(modelElementId)

It would be quite simple to add API for this, please open a bugzilla in
case you would like that.
Hope this helps!

Cheers,
Maximilian

--
Maximilian Kögel

Get Professional Eclipse Support: http://eclipsesource.com/munich
Re: [EMFStore]How to create model element ID [message #1400968 is a reply to message #1384928] Tue, 15 July 2014 00:42 Go to previous messageGo to next message
Roza Ghamari is currently offline Roza GhamariFriend
Messages: 82
Registered: January 2013
Member
Thanks for teh reply, where should I file it? I couldn't find emfstore in eclipse bugzilla
Re: [EMFStore]How to create model element ID [message #1401151 is a reply to message #1400968] Tue, 15 July 2014 07:45 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Am 15.07.2014 02:42, schrieb Roza Ghamari:
> Thanks for teh reply, where should I file it? I couldn't find emfstore
> in eclipse bugzilla
Please use this link:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EMFStore
Previous Topic:EEF error while generating eef architecture
Next Topic:EMFStore Conflict Detection
Goto Forum:
  


Current Time: Sat Mar 06 23:38:16 GMT 2021

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

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

Back to the top