Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Dependencies Injection configuration for XtextDocumentProvider
Dependencies Injection configuration for XtextDocumentProvider [message #1058153] Sun, 12 May 2013 16:14 Go to next message
Dana Klein is currently offline Dana KleinFriend
Messages: 63
Registered: October 2012
Member
Hi, I want to extend the class XtextDocumentProvider, which is created by dependencies injection of google injections.
I want to extend this class in order to extend a method for internal needs but I don't know where is XtextDocumentProvider being configured so that the extended class will be inject instead of it.
How can i found the injection point or configuration or is it a xtext xml that i'm missing?

thanks in advance Smile
Re: Dependencies Injection configuration for XtextDocumentProvider [message #1058161 is a reply to message #1058153] Sun, 12 May 2013 18:34 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1162
Registered: July 2009
Senior Member
Hi,

have you tried

public Class<? extends XtextDocumentProvider> bindDocumentProvider() {
	return MyXtextDocumentProvider.class;
}


in the UI-Module?

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Dependencies Injection configuration for XtextDocumentProvider [message #1059010 is a reply to message #1058161] Thu, 16 May 2013 08:11 Go to previous message
Dana Klein is currently offline Dana KleinFriend
Messages: 63
Registered: October 2012
Member
Now Smile thanks for your help..
Previous Topic:IUnitOfWork and undo
Next Topic:Checkbox or the like in the editor
Goto Forum:
  


Current Time: Fri Dec 19 20:15:13 GMT 2014

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

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