Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Text and Model Editor
Text and Model Editor [message #622193] Tue, 23 February 2010 10:13 Go to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Hi,

i designed an ecore Model to create an graphical editor for my own XML-based markup language.

The tree-based EMF Editor and the GMF Editor both working well.
I know i can create my XML code with XPand now.

My question is:




Is there a way to create a EMF or GMF model from my XML File ?


I know that Xtext is a tool for creating Text based Editor but i can't find a way to sync this with my EMF Tree Editor or GMF Editor except this:
http://koehnlein.blogspot.com/2009/06/synchronized-editors-w ith-tmfxtext-and.html

The best would be an Editor which updates the EMF Tree Editor and the EMD Editor than refresh my GMF-Editor.
Re: Text and Model Editor [message #622196 is a reply to message #622193] Tue, 23 February 2010 12:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Sui,

I think you'd need to combine these things into a single editor
otherwise each editor just keeps it's own local copy of what it's
working on and doesn't sync until you save an editor and cause a
resource delta and that will cause a drastic change, i.e., throwing away
the current state and loading the new state.


Sui wrote:
> Hi,
>
> i designed an ecore Model to create an graphical editor for my own
> XML-based markup language.
>
> The tree-based EMF Editor and the GMF Editor both working well.
> I know i can create my XML code with XPand now.
>
> My question is:
>
>
>
>
> Is there a way to create a EMF or GMF model from my XML File ?
>
> I know that Xtext is a tool for creating Text based Editor but i
> can't find a way to sync this with my EMF Tree Editor or GMF Editor
> except this:
> http://koehnlein.blogspot.com/2009/06/synchronized-editors-w ith-tmfxtext-and.html
>
> The best would be an Editor which updates the EMF Tree Editor and the
> EMD Editor than refresh my GMF-Editor.
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Text and Model Editor [message #622197 is a reply to message #622193] Tue, 23 February 2010 14:19 Go to previous messageGo to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Thanks for reply,

i don't understand what you mean with "these things".
Do you mean the EMF and GMF Editor?
Or would you say the XText Editor could fulfill my requirements or rather is the best way for this, if i combine it to a Single Editor with EMF and GMF Editor?
Re: Text and Model Editor [message #622198 is a reply to message #622197] Tue, 23 February 2010 14:44 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Sui,

Yes, I mean combine the editors. I'm not sure how challenging the task
will be. Likely starting with the Xtext editor as the basis would be best.


Sui wrote:
> Thanks for reply,
>
> i don't understand what you mean with "these things".
> Do you mean the EMF and GMF Editor?
> Or would you say the XText Editor could fulfill my requirements or
> rather is the best way for this, if i combine it to a Single Editor
> with EMF and GMF Editor?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Text and Model Editor
Next Topic:How to split up large meta models
Goto Forum:
  


Current Time: Thu Apr 25 17:44:33 GMT 2024

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

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

Back to the top