Java 类org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider.IInformationControlCreatorProvider 实例源码

项目:bts    文件:DispatchingEObjectTextHover.java   
@Override
public Object getHoverInfo(EObject first, ITextViewer textViewer, IRegion hoverRegion) {
    IEObjectHoverProvider hoverProvider = serviceProvider.findService(first, IEObjectHoverProvider.class);
    if (hoverProvider==null)
        return null;
    IInformationControlCreatorProvider creatorProvider = hoverProvider.getHoverInfo(first, textViewer, hoverRegion);
    if (creatorProvider==null)
        return null;
    this.lastCreatorProvider = creatorProvider;
    return lastCreatorProvider.getInfo();
}
项目:statecharts    文件:CrossRefObjectTextHover.java   
@Override
public Object getHoverInfo(EObject first, ITextViewer textViewer,
        IRegion hoverRegion) {
    IInformationControlCreatorProvider creatorProvider = hoverProvider
            .getHoverInfo(first, textViewer, hoverRegion);
    if (creatorProvider == null)
        return null;
    this.lastCreatorProvider = creatorProvider;
    return lastCreatorProvider.getInfo();
}
项目:PDFReporter-Studio    文件:CrossRefObjectTextHover.java   
@Override
public Object getHoverInfo(EObject first, ITextViewer textViewer,
        IRegion hoverRegion) {
    IInformationControlCreatorProvider creatorProvider = hoverProvider
            .getHoverInfo(first, textViewer, hoverRegion);
    if (creatorProvider == null)
        return null;
    this.lastCreatorProvider = creatorProvider;
    return lastCreatorProvider.getInfo();
}