xtext - How to use java instead of Xtend -
is there possibility write validator , kind of stuff directly in java instead of using xtend?
there way stop xtext overwriting java files in xtend-gen?
greetings krzmbrzl
never edit stuff in src-gen/xtend-gen. custom stuff should placed in src
there not general answer that. can (for places) configure in fragment in workflow of language (by setting property or exchanging fragment (you have read fragments code that)
//fragment = validation.validatorfragment auto-inject {} fragment = validation.javavalidatorfragment auto-inject {} ... fragment = contentassist.contentassistfragment auto-inject { // have create class , add binding generatestub = false } ... fragment = scoping.importnamespacesscopingfragment auto-inject { generatestub = true generatextendstub = false }
and of course can java-subclass xtend classes , add binding subclass
Comments
Post a Comment