eclipse plugin - Xtext - how to extend XtextDocument class -


i need extend xtextdocument class can add properties dsl document. how can done? tried add bind ui module there no bind xtextdocument. in advance

you can add new binding ui module. methods follow convention

public class<? extends ${typetobind}> bind${somename}() {   return ${myspecialtype}.class } 

will invoked reflectively when injector created. therefore, binding

public class<? extends xtextdocument> bindxtextdocument() {   return mydocument.class; } 

will trick.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -