I've a problem and don't have a clue how to solve it
The problem is, that I've two editors.
1) Textual Editor (not mine)
2) Graphical Editor (mine)
I want to display the textual model of the first editor
in the second editor. The second editor is based on GEF.
At the moment I'm thinking of one requirement I have,
but no idea how to solve it.
A selection mechanism:
Whenever something is selected in one of the editors,
it should also be selected in the other one.
So I don't know how to achieve this
and would really appreciate some help.
Some more informations/constraints:
- the graphical editor can also be used without the textual editor!
- not sure if this information is helpful:
-- the input of the graphical editor is the text of the file
-- but it is parsed and represented as a AST (Abstract Syntax Tree)
-- which is the model for the graphical Editor