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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -