Java 类org.eclipse.jface.text.information.IInformationProviderExtension2 实例源码

项目:Eclipse-Postfix-Code-Completion    文件:BestMatchHover.java   
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;
}
项目:Eclipse-Postfix-Code-Completion    文件:JavaEditorTextHoverProxy.java   
@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;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:BestMatchHover.java   
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;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:JavaEditorTextHoverProxy.java   
@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;
}
项目:goclipse    文件:HoverInformationProvider.java   
@Override
public IInformationControlCreator getInformationPresenterControlCreator() {
    if(editorHover instanceof IInformationProviderExtension2) {
        IInformationProviderExtension2 infProviderControlCreator = (IInformationProviderExtension2) editorHover;
        return infProviderControlCreator.getInformationPresenterControlCreator();
    }
    return editorHover.getHoverControlCreator();
}