EMF Model Synchrinization with Multipage Editor (Tree based Editor and Text Editor) [message #592998] |
Sat, 30 September 2006 12:45 |
Kamesh Sampath Messages: 191 Registered: July 2009 |
Senior Member |
|
|
Folks,
Am really trying hard to save a model by editing a raw text and there by
updating the MODEL . All my attempts are in vain .
My Scenario:
The editing domain and model is same for both the editors i mean to say
am sharing the same common EMF model.
I have an Multipage editor with two pages 1. TreeViewer to edit the
model 2. TextEditor to view the model source
I am able to view the changes made to the TreeViewer in the TextEditor
but am struck up with the reverse scenario i.e when i make any textual
changes to the model in form text in TextEditor i should synchronize
that with the underlying model file , I am using the XML editor created
out of eclipse platform samples.
My issues are ,
1. How to track the textual changes in the Text Editor?
2. How to fire the model commands based on the Textual Changes?
I dont know how to do this ? can anyone help me please . I dont mind
even the model file gets corrupted as am not enforcing any validations
now , all that i want is to make both work in sync changes to Model
reflected in Source and Changes to source should be reflected in model.
I am trying to do exactly like the PDE editor. I even saw the PDE editor
source but its really long and very confusing to me.
Any pointers will be really helpful.
Thanks.
--
Kamesh Sampath
|
|
|
Powered by
FUDForum. Page generated in 0.01667 seconds