Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Serialise Models in jar Models(Serialise Models in jar Models)
Serialise Models in jar Models [message #878501] Tue, 29 May 2012 12:48 Go to next message
macheke macheke is currently offline macheke machekeFriend
Messages: 7
Registered: May 2012
Junior Member
Hie

I have part of my models(common stuff that shouldnt be changed) built into the rcp as a plugin-dependency. Wish to add a context menu for users to serialise these models in some other format e.g. XMI,how can this be achieved?

thanx, Macheke
Re: Serialise Models in jar Models [message #878718 is a reply to message #878501] Tue, 29 May 2012 19:43 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Macheke,

you could load the models by the platform:/plugin uri and save them to
an output stream by means of resource#save(..)
If you don't want to use the very same concrete syntax, you are free to
copy the library model into a new resource (say XMIResource).
EcoreUtil#copy will be your friend.
Does that help?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 29.05.12 14:48, schrieb macheke macheke:
> Hie
>
> I have part of my models(common stuff that shouldnt be changed) built
> into the rcp as a plugin-dependency. Wish to add a context menu for
> users to serialise these models in some other format e.g. XMI,how can
> this be achieved?
> thanx, Macheke
Re: Serialise Models in jar Models [message #881355 is a reply to message #878718] Mon, 04 June 2012 11:52 Go to previous message
macheke macheke is currently offline macheke machekeFriend
Messages: 7
Registered: May 2012
Junior Member
thanx a lot Sebastian!!!
Previous Topic:[FIXED] [NOT AN ISSUE] Problem with validator
Next Topic:Xtext: src-gen is empty
Goto Forum:
  


Current Time: Fri Apr 26 20:16:21 GMT 2024

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

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

Back to the top