Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xtext - how to extend XtextDocument class(extend XtextDocument)
Xtext - how to extend XtextDocument class [message #1059672] Tue, 21 May 2013 03:39 Go to next message
Eclipse UserFriend
Hi,
I need to extend XtextDocument class so i can add some properties to my dsl document.
how can it be done?
I tried to add bind to Ui Module but there is no bind for XtextDocument.
thanks in advance
Re: Xtext - how to extend XtextDocument class [message #1059863 is a reply to message #1059672] Tue, 21 May 2013 22:32 Go to previous messageGo to next message
Eclipse UserFriend
Out of curiosity, what do you mean by "add some properties to my dsl document"? I wonder if there might be another way to achieve your goal.
Re: Xtext - how to extend XtextDocument class [message #1807296 is a reply to message #1059863] Mon, 27 May 2019 12:33 Go to previous messageGo to next message
Eclipse UserFriend
Did you ever figure out how to add properties to your XtextDocument?
Re: Xtext - how to extend XtextDocument class [message #1807300 is a reply to message #1807296] Mon, 27 May 2019 13:02 Go to previous message
Eclipse UserFriend
XtextDocumentProvider is used.
it injects Provider<XtextDocument>
so a simply add a binding for XtextDocument should do the trick

there is no requirement for a bind method to override.
the conventions are described here
https://www.eclipse.org/Xtext/documentation/302_configuration.html#dependency-injection
Previous Topic:TortoiseShell - is there simple way to run the interpreter to run a program ?
Next Topic:How to open model file in text editor programmatically
Goto Forum:
  


Current Time: Fri Apr 25 12:03:02 EDT 2025

Powered by FUDForum. Page generated in 0.03889 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top