|
|
|
Re: Possibility to extend EOL-editor with content assist [message #1564746 is a reply to message #1560695] |
Thu, 15 January 2015 00:14 |
|
Hi Johan,
EOL supports a dedicated type of statement for declaring models - not documented as the tools don't make use of it (yet) - which looks like this:
model Source driver EMF {nsUri="http://library"};
To get some model-aware content assistance, you could extend EolEditor, implement a template (i.e. completion) contributor, which should also be a module parse listener (see lines 30-32 of EolEditor.java for an example). This way you could provide context-unaware completion proposals for class/property names in your extended editor. Context-aware code completion would be much harder to get as you'd need to implement static analysis (i.e. variable resolution, type inference) for EOL - which is far from trivial.
Please let me know if you have any further questions.
Cheers,
Dimitris
|
|
|
Powered by
FUDForum. Page generated in 0.03636 seconds