|
|
|
@ -238,7 +238,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void refresh() { |
|
|
|
|
private void refreshParameters() { |
|
|
|
|
String[] paramTexts = new String[2]; |
|
|
|
|
paramTexts[0] = SqlUtils.tryPureSqlText(this.sqlTextPane.getText()); |
|
|
|
|
paramTexts[1] = SqlUtils.tryPureSqlText(this.pageQuery); |
|
|
|
@ -382,7 +382,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
refresh(); |
|
|
|
|
refreshParameters(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -487,6 +487,9 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 保存前 刷新下参数列表 保证获取到最新的参数
|
|
|
|
|
refreshParameters(); |
|
|
|
|
|
|
|
|
|
List<ParameterProvider> parameterList = this.editorPane.update(); |
|
|
|
|
ParameterProvider[] parameters = parameterList.toArray(new ParameterProvider[0]); |
|
|
|
|
|
|
|
|
@ -511,7 +514,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
DBTableDataPane.this.refresh(); |
|
|
|
|
DBTableDataPane.this.refreshParameters(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|