Community
Participate
Working Groups
Build Identifier: 20110615-0604 If in my uiModule I override the bindIEObjectHover( ) method, it doesn't work, but instead it calls the method "public Object getHoverInfo( EObject eObject, ITextViewer textViewer, IRegion hoverRegion )" from the default class: DispatchingEObjectTextHover. Reproducible: Always Steps to Reproduce: 1. override the bindIEObjectHover( ) in your uiModule: @Override public Class< ? extends IEObjectHover > bindIEObjectHover( ) { return MyObjectHover.class; } 2. Put a breakpoint in the getHoverInfo method in both your MyObjectHover class and the DispatchingEObjectTextHover one 3. When hovering on a grammar object, it will call the DispathingEObjectTextHover NOT your overriden class
You have to bind an own implementation of IEObjectHoverProvider to hook language specific hover providers into the framework. The plain IEObjectHover is not meant to be replaced since it dispatches to the language specific implementations. Btw: What do you mean by 'grammar object'? Is that something that you defined in your own language?
Ah. Didn't know that. It works now :) I thought it's a bug ;) Thanks.