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
Post a Comment