Xcore persistence format [message #994559] |
Thu, 27 December 2012 12:20  |
Eclipse User |
|
|
|
Hi Ed,
I am trying to implement for following scenario:
Quote: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: [url]http://www.eclipse.org/forums/index.php/m/994350/#msg_994350
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 ?
Regards,
Ashwani Kr Sharma
[Updated on: Thu, 27 December 2012 12:21] by Moderator
|
|
|
Re: Xcore persistence format [message #994763 is a reply to message #994559] |
Fri, 28 December 2012 02:58  |
Eclipse User |
|
|
|
Ashwani,
Comments below.
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:
> http://www.eclipse.org/forums/index.php/m/994350/#msg_994350
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).
No.
> 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.
Yes.
> 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.
>
> Regards,
> Ashwani Kr Sharma
|
|
|
Powered by
FUDForum. Page generated in 0.07852 seconds