|
Re: Embedding an Xtext DSL in JDT / CDT editors [message #645048 is a reply to message #641477] |
Wed, 15 December 2010 11:23 |
|
I don't think that this is possible now. You would have to change the implementation of the JDT/CDT editors and make them aware of DSL parts. Since usually you don't want to customize those editors and they don't allow to hook into them this way won't be possible.
The other way around, embedding JDT editor facilities into an Xtext DSL editor, is at least imaginable. This has no one realized yet, but the APIs would allow this in principle.
Steps to do:
- Read complete Java fragments as one terminal. This requires that start and end of Java code is marked somehow.
- Integrate Content Assist (see IType)
- Simulate known types from the DSL for the JDT - Content assist must know that you refer to something that is a known Java type in that context with the properties you access
- Same for the compiler
Regards,
~Karsten
Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.03280 seconds