Search in sources :

Example 21 with IInformationControlCreator

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));
}
Also used : IInformationControlCreator(org.eclipse.jface.text.IInformationControlCreator) Point(org.eclipse.swt.graphics.Point) Point(org.eclipse.swt.graphics.Point)

Example 22 with IInformationControlCreator

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);
}
Also used : IInformationControlCreator(org.eclipse.jface.text.IInformationControlCreator)

Example 23 with IInformationControlCreator

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);
}
Also used : IInformationControlCreator(org.eclipse.jface.text.IInformationControlCreator)

Example 24 with IInformationControlCreator

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);
}
Also used : IInformationControlCreator(org.eclipse.jface.text.IInformationControlCreator)

Example 25 with IInformationControlCreator

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);
}
Also used : IInformationControlCreator(org.eclipse.jface.text.IInformationControlCreator)

Aggregations

IInformationControlCreator (org.eclipse.jface.text.IInformationControlCreator)28 Shell (org.eclipse.swt.widgets.Shell)16 DefaultInformationControl (org.eclipse.jface.text.DefaultInformationControl)14 IInformationControl (org.eclipse.jface.text.IInformationControl)11 InformationPresenter (org.eclipse.jface.text.information.InformationPresenter)7 IContentAssistProcessor (org.eclipse.jface.text.contentassist.IContentAssistProcessor)5 IInformationPresenter (org.eclipse.jface.text.information.IInformationPresenter)5 SubjectControlContentAssistant (org.eclipse.jface.contentassist.SubjectControlContentAssistant)4 IInformationProvider (org.eclipse.jface.text.information.IInformationProvider)4 Point (org.eclipse.swt.graphics.Point)4 RegExContentAssistProcessor (net.sf.eclipsecs.ui.util.regex.RegExContentAssistProcessor)2 ISourceViewer (org.eclipse.jface.text.source.ISourceViewer)2 ProjectionSupport (org.eclipse.jface.text.source.projection.ProjectionSupport)2 HtmlTextPresenter (org.eclipse.mylyn.wikitext.ui.viewer.HtmlTextPresenter)2 Control (org.eclipse.swt.widgets.Control)2 HTMLTextPresenter (org.eclipse.wst.sse.ui.internal.derived.HTMLTextPresenter)2 ContentAssistant (com.cubrid.common.ui.query.control.jface.text.contentassist.ContentAssistant)1 IContentAssistant (com.cubrid.common.ui.query.control.jface.text.contentassist.IContentAssistant)1 GroovyASTCompletionProcessor (eu.esdihumboldt.hale.ui.util.groovy.internal.contentassist.GroovyASTCompletionProcessor)1 PropertiesContentAssistProcessor (net.sf.eclipsecs.ui.config.PropertiesContentAssistProcessor)1