Xtext: referencing existing java packages and methods -


i developed dsl use standard java code. in dsl can write things this:

package:  packagename; method: void testmethod (int, double); 

what want do, user of dsl can write package names , method signatures exist in java project.

example:

when project consists of 1 package e.g. “testpackage”, user of dsl should able write:

package:  testpackage 

the name “testpackage” should suggested code completor. same shall work methods.

is possible? , how can xtext?

i've not used (yet), take @ relevant xtext documentation on this. also, i'd through "7 languages", find 1 want (which think you'll find), , study source.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -