|
Re: HoverFeedbackPart [message #1805850 is a reply to message #1805502] |
Thu, 25 April 2019 12:17  |
|
Hi Shenwei,
DefaultHoverFeedbackPartFactory asks the Guice injector to create an instance of HoverFeedbackPart. Therefore, the actual implementation can be exchanged by binding HoverFeedbackPart to a subclass.
class Module {
configure() {
bind(HoverFeedbackPart.class).to(CustomHoverFeedbackPart.class);
}
}
If this is not sufficient in your case, then you have to exchange the factory and create your custom feedback part there.
I am not a big fan of the provider mechanism, because it clutters the module with verbose bindings. However, you are correct that it would be easier to exchange if done like that. I will think about this.
Best regards,
Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.01833 seconds