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; } }
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; } }