Search in sources :

Example 1 with AntInformationProvider

use of org.eclipse.ant.internal.ui.editor.text.AntInformationProvider in project eclipse.platform by eclipse-platform.

the class AntEditorSourceViewerConfiguration method getInformationPresenter.

@Override
public IInformationPresenter getInformationPresenter(ISourceViewer sourceViewer) {
    InformationPresenter presenter = new InformationPresenter(getInformationPresenterControlCreator());
    presenter.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
    IInformationProvider provider = new AntInformationProvider(new XMLTextHover(fEditor));
    presenter.setInformationProvider(provider, IDocument.DEFAULT_CONTENT_TYPE);
    presenter.setInformationProvider(provider, AntEditorPartitionScanner.XML_CDATA);
    presenter.setInformationProvider(provider, AntEditorPartitionScanner.XML_COMMENT);
    presenter.setInformationProvider(provider, AntEditorPartitionScanner.XML_DTD);
    presenter.setInformationProvider(provider, AntEditorPartitionScanner.XML_TAG);
    presenter.setSizeConstraints(60, 10, true, true);
    return presenter;
}
Also used : XMLTextHover(org.eclipse.ant.internal.ui.editor.text.XMLTextHover) IInformationProvider(org.eclipse.jface.text.information.IInformationProvider) IInformationPresenter(org.eclipse.jface.text.information.IInformationPresenter) InformationPresenter(org.eclipse.jface.text.information.InformationPresenter) AntInformationProvider(org.eclipse.ant.internal.ui.editor.text.AntInformationProvider)

Aggregations

AntInformationProvider (org.eclipse.ant.internal.ui.editor.text.AntInformationProvider)1 XMLTextHover (org.eclipse.ant.internal.ui.editor.text.XMLTextHover)1 IInformationPresenter (org.eclipse.jface.text.information.IInformationPresenter)1 IInformationProvider (org.eclipse.jface.text.information.IInformationProvider)1 InformationPresenter (org.eclipse.jface.text.information.InformationPresenter)1