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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -