Commit 46c59039 authored by igoshin's avatar igoshin

#14360 fix push dialog

parent 6f0c90c6
......@@ -739,10 +739,8 @@ public class AppWindow {
_log.info("No tab selected");
return null;
}
IStructuredSelection thisSelection = (IStructuredSelection) tabFolder.getSelection();
IDataSource currentSource= (IDataSource) ((TreeSelection) thisSelection).getPaths()[0].getFirstSegment();
return currentSource;
final IDataSource ds = ((SheetDisplay) currentTab.getControl()).getDataSource();
return ds;
}
public void addJdbcQuery(JdbcDataSource dataSource) {
......
......@@ -607,7 +607,11 @@ public class SheetDisplay extends Composite {
return dsw.getDataSourceSheet();
}
private void initDataBindingForSqlQuery(DataBindingContext bindingContext) {
public IDataSource getDataSource() {
return dataSource;
}
private void initDataBindingForSqlQuery(DataBindingContext bindingContext) {
IObservableValue obTextQueryName = WidgetProperties.text(SWT.Modify).observe(txtQueryName);
IObservableValue queryNameValue = BeanProperties.value("dataSourceSheet.sheetName").observe(dsw);
bindingContext.bindValue(obTextQueryName, queryNameValue, null, null);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment