Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:39 Go to next message
Dana Klein is currently offline Dana KleinFriend
Messages: 63
Registered: October 2012
Member
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] Wed, 22 May 2013 02:32 Go to previous messageGo to next message
Joey Mink is currently offline Joey MinkFriend
Messages: 87
Registered: July 2009
Location: Centreville, VA, USA
Member

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 16:33 Go to previous messageGo to next message
John Milligan is currently offline John MilliganFriend
Messages: 8
Registered: March 2016
Junior Member
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 17:02 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
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: Thu Apr 18 19:16:07 GMT 2024

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

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

Back to the top