Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Xcore persistence format
Xcore persistence format [message #994559] Thu, 27 December 2012 17:20 Go to next message
Ashwani Kr Sharma is currently offline Ashwani Kr Sharma
Messages: 118
Registered: July 2009
Location: Bangalore, India
Senior Member

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 17:21]

Report message to a moderator

Re: Xcore persistence format [message #994763 is a reply to message #994559] Fri, 28 December 2012 07:58 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26068
Registered: July 2009
Senior Member
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
Previous Topic:[CDO] HibernateStore MappingException: Unknown entity: CDORevisionImpl
Next Topic:No Model exporter found for Xcore
Goto Forum:
  


Current Time: Tue Sep 23 20:28:40 GMT 2014

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

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