use of org.jkiss.dbeaver.ui.editors.StringEditorInput in project dbeaver by serge-rider.
the class OpenHandler method openSQLConsole.
public static SQLEditor openSQLConsole(IWorkbenchWindow workbenchWindow, DBPDataSourceContainer dataSourceContainer, String name, String sqlText) {
StringEditorInput sqlInput = new StringEditorInput(name, sqlText, false, GeneralUtils.DEFAULT_ENCODING);
EditorUtils.setInputDataSource(sqlInput, dataSourceContainer, false);
return openSQLEditor(workbenchWindow, sqlInput);
}
Aggregations