Search in sources :

Example 1 with SQLInformationProvider

use of org.jkiss.dbeaver.ui.editors.sql.syntax.SQLInformationProvider in project dbeaver by serge-rider.

the class SQLEditorSourceViewerConfiguration method getInformationPresenter.

@Override
public IInformationPresenter getInformationPresenter(ISourceViewer sourceViewer) {
    InformationPresenter presenter = new InformationPresenter(getInformationControlCreator(sourceViewer));
    presenter.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
    // Register information provider
    IInformationProvider provider = new SQLInformationProvider(getSQLEditor());
    String[] contentTypes = getConfiguredContentTypes(sourceViewer);
    for (String contentType : contentTypes) {
        presenter.setInformationProvider(provider, contentType);
    }
    presenter.setSizeConstraints(60, 10, true, true);
    return presenter;
}
Also used : IInformationProvider(org.eclipse.jface.text.information.IInformationProvider) IInformationPresenter(org.eclipse.jface.text.information.IInformationPresenter) InformationPresenter(org.eclipse.jface.text.information.InformationPresenter) SQLInformationProvider(org.jkiss.dbeaver.ui.editors.sql.syntax.SQLInformationProvider)

Aggregations

IInformationPresenter (org.eclipse.jface.text.information.IInformationPresenter)1 IInformationProvider (org.eclipse.jface.text.information.IInformationProvider)1 InformationPresenter (org.eclipse.jface.text.information.InformationPresenter)1 SQLInformationProvider (org.jkiss.dbeaver.ui.editors.sql.syntax.SQLInformationProvider)1