|Re: Xcore persistence format [message #994763 is a reply to message #994559]
||Fri, 28 December 2012 02:58
| Ed Merks
Registered: July 2009
On 27/12/2012 6:20 PM, Ashwani Kr Sharma wrote:
> Hi Ed,
> I am trying to implement for following scenario:
> Updating comment to specify the requirement more clearly:
> I have existing editors that persist values into XML format. I can't
> change the persistence format. I want to provide alternate dsl editor
> for the existing use cases. The existing XML have to be read as dsl
> format and content from dsl editor have to be persisted into XML format
> Link to query in TMF forum:
The persistence format it implemented by the derived ResourceImpl. For
XML persistence you need an XMLResourceImpl (or XMIResourceImpl for XMI
serialialization). Persisting to another representation is often just a
matter of creating the appropriate type of resource an moving the
contents to that resource.
> I thought in xcore you have done something similar that users can open
> their existing ecore file in the DSL format (xcore).
> But i found that you opted to have separate resource for xcore which i
> think is stored as plain text and not xmi based representation.
> Since, you might have already looked into the possibilities from
> xText, i thought of asking this question to you directly. Is my use
> case not possible to achieve using xText ?
I think a few people have asked that before on that forum, so you should
have a look at the forum history.
> Ashwani Kr Sharma
Powered by FUDForum
. Page generated in 0.01571 seconds