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