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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -