Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Storing xml commets in emf object
Storing xml commets in emf object [message #431642] Mon, 20 July 2009 07:00 Go to next message
Jijoy is currently offline JijoyFriend
Messages: 5
Registered: July 2009
Junior Member
Hi ,
I have an xml editor , which helps the user to edit the textual
representation of my emf model. Then I load this EMF model to use for some
other views. But these views also can manipulate the model through GUI.
Users can type xml comments into text editor and save .But after that
when it's loaded thorough EMF for other views , I am loosing xml comments.
So I need to find a way to attach this xml comments to the EMF objects
without
altering ecore to have another field .

Anybody knows a solution ?

Thanks in advance .
Re: Storing xml commets in emf object [message #431653 is a reply to message #431642] Mon, 20 July 2009 19:06 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Jijoy,

This has been asked before. Comments are just white space as far as EMF
is concerned while processing the XML. It can appear anywhere within
the element content... I suppose you could record in a map by
specializing the XMLHandler and save it by specializing XMLSaveImpl.


Jijoy wrote:
> Hi ,
> I have an xml editor , which helps the user to edit the textual
> representation of my emf model. Then I load this EMF model to use for
> some other views. But these views also can manipulate the model
> through GUI. Users can type xml comments into text editor and save
> .But after that when it's loaded thorough EMF for other views , I am
> loosing xml comments. So I need to find a way to attach this xml
> comments to the EMF objects without altering ecore to have another
> field .
>
> Anybody knows a solution ?
>
> Thanks in advance .


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] CDOID changes when CDOObject is moved - bug or not?
Next Topic:When to use "is abstract" and when "is interface"
Goto Forum:
  


Current Time: Thu Apr 25 09:28:48 GMT 2024

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

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

Back to the top