Java源码示例:org.eclipse.jface.text.source.IAnnotationHover
示例1
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
IAnnotationHover hover = annotationHoverProvider.get();
if (hover instanceof ISourceViewerAware) {
((ISourceViewerAware) hover).setSourceViewer(sourceViewer);
}
return hover;
}
示例2
public IAnnotationHover getHover() {
int activeLine= getParentRuler().getLineOfLastMouseButtonActivity();
if (fRevisionPainter.hasHover(activeLine))
return fRevisionPainter.getHover();
if (fDiffPainter.hasHover(activeLine))
return fDiffPainter.getHover();
return null;
}
示例3
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
{
return new CommonAnnotationHover(false)
{
protected boolean isIncluded(Annotation annotation)
{
return isShowInVerticalRuler(annotation);
}
};
}
示例4
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer)
{
return new CommonAnnotationHover(true)
{
protected boolean isIncluded(Annotation annotation)
{
return isShowInOverviewRuler(annotation);
}
};
}
示例5
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return new HTMLAnnotationHover(false) {
@Override
protected boolean isIncluded(Annotation annotation) {
return isShowInVerticalRuler(annotation);
}
};
}
示例6
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
return new HTMLAnnotationHover(true) {
@Override
protected boolean isIncluded(Annotation annotation) {
return isShowInOverviewRuler(annotation);
}
};
}
示例7
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return new HTMLAnnotationHover(false) {
@Override
protected boolean isIncluded(Annotation annotation) {
return isShowInVerticalRuler(annotation);
}
};
}
示例8
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
return new HTMLAnnotationHover(true) {
@Override
protected boolean isIncluded(Annotation annotation) {
return isShowInOverviewRuler(annotation);
}
};
}
示例9
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return new HTMLAnnotationHover(false) {
@Override
protected boolean isIncluded(Annotation annotation) {
return isShowInVerticalRuler(annotation);
}
};
}
示例10
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
return new HTMLAnnotationHover(true) {
@Override
protected boolean isIncluded(Annotation annotation) {
return isShowInOverviewRuler(annotation);
}
};
}
示例11
/**
* @Override
*/
public IAnnotationHover getAnnotationHover( ISourceViewer sourceViewer){
return new MyAnnotationHover();
}
示例12
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return null;
}
示例13
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
return null;
}
示例14
public Class<? extends IAnnotationHover> bindIAnnotationHover() {
return ProblemAnnotationHover.class;
}
示例15
/**
* @return The annotation hover text provider for this editor
*/
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return annotationHover;
}
示例16
/**
* @return the annotation hover text provider for this editor
*/
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return annotationHover;
}
示例17
@Override
public void setAnnotationHover(IAnnotationHover annotationHover) {
throw new UnsupportedOperationException();
}
示例18
@Override
public Class<? extends IAnnotationHover> bindIAnnotationHover() {
return XtendAnnotationHover.class;
}
示例19
/**
* Ruler annotation
*/
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
{
return new TLAAnnotationHover();
}
示例20
public void setHover(IAnnotationHover hover) {
fRevisionPainter.setHover(hover);
fDiffPainter.setHover(hover);
}
示例21
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return null;
}
示例22
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
return null;
}
示例23
public Class<? extends IAnnotationHover> bindIAnnotationHover() {
return XtendAnnotationHover.class;
}
示例24
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return new PyAnnotationHover(sourceViewer);
}
示例25
public void setAnnotationHover(IAnnotationHover annotationHover) {
viewer.setAnnotationHover(annotationHover);
}
示例26
public void setOverviewRulerAnnotationHover(IAnnotationHover annotationHover) {
viewer.setOverviewRulerAnnotationHover(annotationHover);
}
示例27
public IAnnotationHover getCurrentAnnotationHover() {
return viewer.getCurrentAnnotationHover();
}
示例28
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
return null;
}
示例29
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
return null;
}