Xtext Editor integration [message #638417] |
Thu, 11 November 2010 09:23 |
|
Hello Everyone,
I am currently looking for a way of how to integrate an Xtext editor. What i am interested in is how to place the Xtext Editor into a Multi-Page-Editor or into an Editor based on Forms. All examples i found were quite heavy and far over the top.
Cheers
Phil
|
|
|
|
|
Re: Xtext Editor integration [message #638726 is a reply to message #638701] |
Fri, 12 November 2010 11:16 |
|
HI Sebastian, Hi Darie,
what i mean with "Far over the top" is that iam looking for a quick and easy way to integrate. The example i found is not an official one. A guy managed to perfectly embedd a XtextEditor to forms and MPE and so on. This was achieved by using a wrapper for the Xtext generated editor. I am afraid since xtext seems to be quite an agile project, that it becomes expensive to maintain such a wrapper. What dou you think?
So back to what i am looking for: Looking to the example of the MPE in Eclipse, an editorInstance is created with "new TextEditor" and placed to the MPE by "addPage(...,...)".
Something like "XTextEditor editor = new MySpecificXtextEditor()" would be great. Is there something like this?
Do you know examples that you can suggest to me? Darie mentioned a GMF-Xtext example but i cannot find that one.
@Darie: Which example do you mean in particular?
Thanks
Phil
|
|
|
Re: Xtext Editor integration [message #638729 is a reply to message #638726] |
Fri, 12 November 2010 11:33 |
Darie Moldovan Messages: 67 Registered: November 2010 Location: Darmstadt, Germany |
Member |
|
|
Hi Phil,
I meant the example, which you can compile and run - in Eclipse, navigate to File -> New... -> Other -> Examples -> Xtext Examples -> Xtext GMF Integration Example. I don't know if this would help you, I never tried that example, I just saw it the other day in the New project window of my Eclipse installation
Back to your initial question - it's a very good point, Xtext is based on automation, therefore I would also expect the developers to have thought of a simple method to integrate an Xtext editor into a multipageEditor. By the way, could you please post here the link you found? Later (maybe at the beginning of the next year), I will also have to create a multi page editor with the help of xtext.
Regarding the implementation - I also looked for a class which extends TextEditor, but didn't find it.
If you find something interesting, please post the links here. Thanks!
Viele Grüße
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02179 seconds