Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFStore] Versioning example(Switching from CDO to EMFStore, need an example of how versioning is supported)
[EMFStore] Versioning example [message #1718649] Mon, 28 December 2015 18:00 Go to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

I am switching from CDO to EMFStore and the tutorials do not provide much in the way of instruction for how to version a model programatically. Is there an example somewhere? "EMFStore Code Examples" are rather simplistic.

I assume it is based around VersionSpecImpl?

Re: [EMFStore] Versioning example [message #1718864 is a reply to message #1718649] Thu, 31 December 2015 10:12 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi David,

we will get back to you about this question, but due to holiday season,
it might take until next week.

Best regards

Jonas

Am 28.12.2015 um 19:00 schrieb David Wynter:
> Hi,
>
> I am switching from CDO to EMFStore and the tutorials do not provide
> much in the way of instruction for how to version a model
> programatically. Is there an example somewhere? "EMFStore Code Examples"
> are rather simplistic.
>
> I assume it is based around VersionSpecImpl?
>


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Re: [EMFStore] Versioning example [message #1719747 is a reply to message #1718649] Mon, 11 January 2016 19:02 Go to previous message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 253
Registered: July 2009
Senior Member
Hi David,

sorry for the delayed reply, we have all been on vacation.
I agree the examples are rather simplistic but that is unfortunately the best documentation
available other than the JavaDoc. The API tutorial shows how to share, commit and update on a project.
I am not sure what you refer to by versioning a model but IMHO ESLocalProject has most of the
relevant methods. You can commit a changed model and update the model with changes from the server
including merging in the face of a conflict. It also tells you the current version of the local
project with getBaseVersion(). To query the history (including all previous versions) and branches
of a project in the server you can get the ESRemoteProject from a ESLocalProject with
getRemoteProject and make calls on it:
http://download.eclipse.org/emfstore/releases_16/javadoc/org/eclipse/emf/emfstore/client/ESLocalProject.html

BTW: May I ask why you switch from CDO to EMFStore?

Hope this helps!

Cheers,
Maximilian

On 28.12.2015 19:00, David Wynter wrote:
> Hi,
>
> I am switching from CDO to EMFStore and the tutorials do not provide much in the way of instruction
> for how to version a model programatically. Is there an example somewhere? "EMFStore Code Examples"
> are rather simplistic.
>
> I assume it is based around VersionSpecImpl?
>


--
Maximilian Koegel

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:How to automatically arranging Ecore diagrams
Next Topic:[ECP] Recommended way to observe for new objects added to projects
Goto Forum:
  


Current Time: Thu Apr 25 01:34:24 GMT 2024

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

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

Back to the top