How to bind IContextualOutputConfigurationProvider as ConfigurationsProvider [message #1752749] |
Thu, 26 January 2017 15:59  |
Eclipse User |
|
|
|
Hi there,
I'm trying to bind IContextualOutputConfigurationProvider to get a reference to the current resource when providing my custom output configurations, but I can't get it to work. Just binding it doesn't work. At least my implementation is not called at any time.
binder.bind(IContextualOutputConfigurationProvider)
.to(CustomOutputConfigurationProvider)
.in(Singleton);
Hints would be very very very appreciated.
EDIT:
I tried to override EclipseOutputConfigurationProvider in the ui-project which would make absolute sense. But for some reason the EclipseOutputConifugrationProvider stays in charge...!?
In the UiModule:
override Class<? extends IContextualOutputConfigurationProvider> bindIContextualOutputConfigurationProvider() {
return CustomOutputConfigurationProvider;
}
Thx
[Updated on: Thu, 26 January 2017 16:24] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04678 seconds