类org.eclipse.jface.text.source.IAnnotationHover源码实例Demo

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

@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	IAnnotationHover hover = annotationHoverProvider.get();
	if (hover instanceof ISourceViewerAware) {
		((ISourceViewerAware) hover).setSourceViewer(sourceViewer);
	}
	return hover;
}
 
public IAnnotationHover getHover() {
	int activeLine= getParentRuler().getLineOfLastMouseButtonActivity();
	if (fRevisionPainter.hasHover(activeLine))
		return fRevisionPainter.getHover();
	if (fDiffPainter.hasHover(activeLine))
		return fDiffPainter.getHover();
	return null;
}
 
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
{
	return new CommonAnnotationHover(false)
	{
		protected boolean isIncluded(Annotation annotation)
		{
			return isShowInVerticalRuler(annotation);
		}
	};
}
 
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer)
{
	return new CommonAnnotationHover(true)
	{
		protected boolean isIncluded(Annotation annotation)
		{
			return isShowInOverviewRuler(annotation);
		}
	};
}
 
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(false) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInVerticalRuler(annotation);
		}
	};
}
 
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(true) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInOverviewRuler(annotation);
		}
	};
}
 
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(false) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInVerticalRuler(annotation);
		}
	};
}
 
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(true) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInOverviewRuler(annotation);
		}
	};
}
 
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(false) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInVerticalRuler(annotation);
		}
	};
}
 
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(true) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInOverviewRuler(annotation);
		}
	};
}
 
源代码11 项目: http4e   文件: HConfiguration.java
/**
 * @Override
 */
public IAnnotationHover getAnnotationHover( ISourceViewer sourceViewer){
   return new MyAnnotationHover();
}
 
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
源代码14 项目: xtext-eclipse   文件: DefaultUiModule.java
public Class<? extends IAnnotationHover> bindIAnnotationHover() {
	return ProblemAnnotationHover.class;
}
 
源代码15 项目: texlipse   文件: BibSourceViewerConfiguration.java
/**
 * @return The annotation hover text provider for this editor
 */
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
    return annotationHover;
}
 
源代码16 项目: texlipse   文件: TexSourceViewerConfiguration.java
/**
 * @return the annotation hover text provider for this editor
 */
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
    return annotationHover;
}
 
源代码17 项目: gef   文件: DotHtmlLabelHoverFakeSourceViewer.java
@Override
public void setAnnotationHover(IAnnotationHover annotationHover) {
	throw new UnsupportedOperationException();
}
 
源代码18 项目: xtext-xtend   文件: XtendUiModule.java
@Override
public Class<? extends IAnnotationHover> bindIAnnotationHover() {
	return XtendAnnotationHover.class;
}
 
源代码19 项目: tlaplus   文件: TLASourceViewerConfiguration.java
/**
 * Ruler annotation
 */
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
{
    return new TLAAnnotationHover();
}
 
public void setHover(IAnnotationHover hover) {
	fRevisionPainter.setHover(hover);
	fDiffPainter.setHover(hover);
}
 
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
源代码23 项目: sarl   文件: AbstractSARLUiModule.java
public Class<? extends IAnnotationHover> bindIAnnotationHover() {
	return XtendAnnotationHover.class;
}
 
源代码24 项目: Pydev   文件: PyEditConfiguration.java
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
    return new PyAnnotationHover(sourceViewer);
}
 
源代码25 项目: Pydev   文件: ScriptConsoleViewerWrapper.java
public void setAnnotationHover(IAnnotationHover annotationHover) {
    viewer.setAnnotationHover(annotationHover);
}
 
源代码26 项目: Pydev   文件: ScriptConsoleViewerWrapper.java
public void setOverviewRulerAnnotationHover(IAnnotationHover annotationHover) {
    viewer.setOverviewRulerAnnotationHover(annotationHover);
}
 
源代码27 项目: Pydev   文件: ScriptConsoleViewerWrapper.java
public IAnnotationHover getCurrentAnnotationHover() {
    return viewer.getCurrentAnnotationHover();
}
 
源代码28 项目: goclipse   文件: SimpleSourceViewerConfiguration.java
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
源代码29 项目: goclipse   文件: SimpleSourceViewerConfiguration.java
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
 类所在包
 同包方法