private static IInformationControlCreator getInformationPresenterControlCreator(ITextHover hover) { if (hover instanceof IInformationProviderExtension2) // this is wrong, but left here for backwards compatibility return ((IInformationProviderExtension2)hover).getInformationPresenterControlCreator(); if (hover instanceof AbstractJavaEditorTextHover) { return ((AbstractJavaEditorTextHover) hover).getInformationPresenterControlCreator(); } return null; }
@Override public IInformationControlCreator getInformationPresenterControlCreator() { if (ensureHoverCreated()) { if (fHover instanceof IInformationProviderExtension2) // this is wrong, but left here for backwards compatibility return ((IInformationProviderExtension2) fHover).getInformationPresenterControlCreator(); } return null; }
@Override public IInformationControlCreator getInformationPresenterControlCreator() { if(editorHover instanceof IInformationProviderExtension2) { IInformationProviderExtension2 infProviderControlCreator = (IInformationProviderExtension2) editorHover; return infProviderControlCreator.getInformationPresenterControlCreator(); } return editorHover.getHoverControlCreator(); }