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;
}
Aggregations