[Solved] DocumentTokenSource Injection [message #1242641] |
Sun, 09 February 2014 23:09 |
|
Hi,
Could someone help me to solve my problem ?
I'm injecting MyDocumentTokenSource in
@Inject
public XtextDocument(DocumentTokenSource tokenSource, ITextEditComposer composer)
So, I've written :
public class MyUiModule extends AbstractMyUiModule {
public MyUiModule(AbstractUIPlugin plugin) {
super(plugin);
}
@Override
public void configure(Binder binder)
{
super.configure(binder);
binder.bind(DocumentTokenSource.class).to(MyDocumentTokenSource.class);
}
and if it is useful, in the same class MyUiModule:
public Class<? extends DocumentTokenSource> bindDocumentTokenSource()
{
return MyDocumentTokenSource.class;
}
But I obtain an exception showing that MyDocumentTokenSource is not injected but DocumentTokenSource.
What's wrong, please ?
[Updated on: Thu, 13 February 2014 02:49] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02840 seconds