org.eclipse.jface.text.source.IAnnotationHover Java Examples

The following examples show how to use org.eclipse.jface.text.source.IAnnotationHover. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PropertiesFileSourceViewerConfiguration.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(true) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInOverviewRuler(annotation);
		}
	};
}
 
Example #2
Source File: AbstractLangSourceViewerConfiguration.java    From goclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(true) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInOverviewRuler(annotation);
		}
	};
}
 
Example #3
Source File: XtextSourceViewerConfiguration.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	IAnnotationHover hover = annotationHoverProvider.get();
	if (hover instanceof ISourceViewerAware) {
		((ISourceViewerAware) hover).setSourceViewer(sourceViewer);
	}
	return hover;
}
 
Example #4
Source File: AbstractLangSourceViewerConfiguration.java    From goclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(false) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInVerticalRuler(annotation);
		}
	};
}
 
Example #5
Source File: PropertiesFileSourceViewerConfiguration.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(false) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInVerticalRuler(annotation);
		}
	};
}
 
Example #6
Source File: JavaSourceViewerConfiguration.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(true) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInOverviewRuler(annotation);
		}
	};
}
 
Example #7
Source File: JavaSourceViewerConfiguration.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return new HTMLAnnotationHover(false) {
		@Override
		protected boolean isIncluded(Annotation annotation) {
			return isShowInVerticalRuler(annotation);
		}
	};
}
 
Example #8
Source File: CommonSourceViewerConfiguration.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer)
{
	return new CommonAnnotationHover(true)
	{
		protected boolean isIncluded(Annotation annotation)
		{
			return isShowInOverviewRuler(annotation);
		}
	};
}
 
Example #9
Source File: CommonLineNumberChangeRulerColumn.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
public IAnnotationHover getHover() {
	int activeLine= getParentRuler().getLineOfLastMouseButtonActivity();
	if (fRevisionPainter.hasHover(activeLine))
		return fRevisionPainter.getHover();
	if (fDiffPainter.hasHover(activeLine))
		return fDiffPainter.getHover();
	return null;
}
 
Example #10
Source File: CommonSourceViewerConfiguration.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
{
	return new CommonAnnotationHover(false)
	{
		protected boolean isIncluded(Annotation annotation)
		{
			return isShowInVerticalRuler(annotation);
		}
	};
}
 
Example #11
Source File: PyEditConfiguration.java    From Pydev with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
    return new PyAnnotationHover(sourceViewer);
}
 
Example #12
Source File: SimpleJavaSourceViewerConfiguration.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
Example #13
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends IAnnotationHover> bindIAnnotationHover() {
	return XtendAnnotationHover.class;
}
 
Example #14
Source File: SimpleSourceViewerConfiguration.java    From goclipse with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
Example #15
Source File: ScriptConsoleViewerWrapper.java    From Pydev with Eclipse Public License 1.0 4 votes vote down vote up
public void setAnnotationHover(IAnnotationHover annotationHover) {
    viewer.setAnnotationHover(annotationHover);
}
 
Example #16
Source File: ScriptConsoleViewerWrapper.java    From Pydev with Eclipse Public License 1.0 4 votes vote down vote up
public void setOverviewRulerAnnotationHover(IAnnotationHover annotationHover) {
    viewer.setOverviewRulerAnnotationHover(annotationHover);
}
 
Example #17
Source File: ScriptConsoleViewerWrapper.java    From Pydev with Eclipse Public License 1.0 4 votes vote down vote up
public IAnnotationHover getCurrentAnnotationHover() {
    return viewer.getCurrentAnnotationHover();
}
 
Example #18
Source File: SimpleSourceViewerConfiguration.java    From goclipse with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
Example #19
Source File: HConfiguration.java    From http4e with Apache License 2.0 4 votes vote down vote up
/**
 * @Override
 */
public IAnnotationHover getAnnotationHover( ISourceViewer sourceViewer){
   return new MyAnnotationHover();
}
 
Example #20
Source File: SimpleJavaSourceViewerConfiguration.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
Example #21
Source File: CommonLineNumberChangeRulerColumn.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
public void setHover(IAnnotationHover hover) {
	fRevisionPainter.setHover(hover);
	fDiffPainter.setHover(hover);
}
 
Example #22
Source File: TLASourceViewerConfiguration.java    From tlaplus with MIT License 4 votes vote down vote up
/**
 * Ruler annotation
 */
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
{
    return new TLAAnnotationHover();
}
 
Example #23
Source File: XtendUiModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Class<? extends IAnnotationHover> bindIAnnotationHover() {
	return XtendAnnotationHover.class;
}
 
Example #24
Source File: DotHtmlLabelHoverFakeSourceViewer.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void setAnnotationHover(IAnnotationHover annotationHover) {
	throw new UnsupportedOperationException();
}
 
Example #25
Source File: TexSourceViewerConfiguration.java    From texlipse with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * @return the annotation hover text provider for this editor
 */
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
    return annotationHover;
}
 
Example #26
Source File: BibSourceViewerConfiguration.java    From texlipse with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * @return The annotation hover text provider for this editor
 */
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
    return annotationHover;
}
 
Example #27
Source File: DefaultUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAnnotationHover> bindIAnnotationHover() {
	return ProblemAnnotationHover.class;
}
 
Example #28
Source File: ReadOnlySourceViewerConfiguration.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IAnnotationHover getOverviewRulerAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}
 
Example #29
Source File: ReadOnlySourceViewerConfiguration.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer) {
	return null;
}