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

下面列出了怎么用org.eclipse.jface.text.information.IInformationProviderExtension2的API类实例代码及写法,或者点击链接到github查看源代码。

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;
}
 
源代码3 项目: goclipse   文件: HoverInformationProvider.java
@Override
public IInformationControlCreator getInformationPresenterControlCreator() {
	if(editorHover instanceof IInformationProviderExtension2) {
		IInformationProviderExtension2 infProviderControlCreator = (IInformationProviderExtension2) editorHover;
		return infProviderControlCreator.getInformationPresenterControlCreator();
	}
	return editorHover.getHoverControlCreator();
}
 
 类所在包
 类方法
 同包方法