use of org.eclipse.jface.text.IInformationControlCreator in project eclipse.platform.text by eclipse.
the class OverviewRulerHoverManager method computeInformation.
@Override
protected void computeInformation() {
Point location = getHoverEventLocation();
int line = getVerticalRulerInfo().toDocumentLineNumber(location.y);
IAnnotationHover hover = getAnnotationHover();
IInformationControlCreator controlCreator = null;
if (hover instanceof IAnnotationHoverExtension)
controlCreator = ((IAnnotationHoverExtension) hover).getHoverControlCreator();
setCustomInformationControlCreator(controlCreator);
setInformation(hover.getHoverInfo(getSourceViewer(), line), computeArea(location.y));
}
use of org.eclipse.jface.text.IInformationControlCreator in project webtools.sourceediting by eclipse.
the class TestViewerConfigurationCSS method testGetInformationControlCreator.
/*
* not necessary
*/
public void testGetInformationControlCreator() {
// probably no display
if (!fDisplayExists)
return;
IInformationControlCreator infoCreator = fConfig.getInformationControlCreator(fViewer);
assertNotNull("InformationControlCreator is null", infoCreator);
}
use of org.eclipse.jface.text.IInformationControlCreator in project webtools.sourceediting by eclipse.
the class TestViewerConfigurationXML method testGetInformationControlCreator.
/**
* Not necessary
*/
public void testGetInformationControlCreator() {
// probably no display
if (!fDisplayExists)
return;
IInformationControlCreator infoCreator = fConfig.getInformationControlCreator(fViewer);
assertNotNull("InformationControlCreator is null", infoCreator);
}
use of org.eclipse.jface.text.IInformationControlCreator in project webtools.sourceediting by eclipse.
the class TestViewerConfigurationHTML method testGetInformationControlCreator.
/**
* Not necessary
*/
public void testGetInformationControlCreator() {
// probably no display
if (!fDisplayExists)
return;
IInformationControlCreator infoCreator = fConfig.getInformationControlCreator(fViewer);
assertNotNull("InformationControlCreator is null", infoCreator);
}
use of org.eclipse.jface.text.IInformationControlCreator in project webtools.sourceediting by eclipse.
the class TestViewerConfiguration method testGetInformationControlCreator.
public void testGetInformationControlCreator() {
// probably no display
if (!fDisplayExists)
return;
IInformationControlCreator infoControlCreator = fConfig.getInformationControlCreator(fViewer);
assertNotNull("info control creator was null", infoControlCreator);
}
Aggregations