org.eclipse.jface.text.information.IInformationProviderExtension2 Java Examples
The following examples show how to use
org.eclipse.jface.text.information.IInformationProviderExtension2.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BestMatchHover.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
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; }
Example #2
Source File: JavaEditorTextHoverProxy.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@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; }
Example #3
Source File: HoverInformationProvider.java From goclipse with Eclipse Public License 1.0 | 5 votes |
@Override public IInformationControlCreator getInformationPresenterControlCreator() { if(editorHover instanceof IInformationProviderExtension2) { IInformationProviderExtension2 infProviderControlCreator = (IInformationProviderExtension2) editorHover; return infProviderControlCreator.getInformationPresenterControlCreator(); } return editorHover.getHoverControlCreator(); }