提交 2effca40 编写于 作者: S serge-rider

Go to row


Former-commit-id: 5b2284b5
上级 4ac8de60
...@@ -204,6 +204,7 @@ public class ResultSetCommandHandler extends AbstractHandler { ...@@ -204,6 +204,7 @@ public class ResultSetCommandHandler extends AbstractHandler {
break; break;
} }
case ITextEditorActionDefinitionIds.LINE_GOTO: { case ITextEditorActionDefinitionIds.LINE_GOTO: {
ResultSetRow currentRow = rsv.getCurrentRow();
final int rowCount = rsv.getModel().getRowCount(); final int rowCount = rsv.getModel().getRowCount();
if (rowCount <= 0) { if (rowCount <= 0) {
break; break;
...@@ -212,7 +213,7 @@ public class ResultSetCommandHandler extends AbstractHandler { ...@@ -212,7 +213,7 @@ public class ResultSetCommandHandler extends AbstractHandler {
HandlerUtil.getActiveShell(event), HandlerUtil.getActiveShell(event),
"Go to Row", "Go to Row",
"Enter row number (1.." + rowCount + ")", "Enter row number (1.." + rowCount + ")",
String.valueOf(rowCount), String.valueOf(currentRow == null ? 1 : currentRow.getVisualNumber() + 1),
new IInputValidator() { new IInputValidator() {
@Override @Override
public String isValid(String input) { public String isValid(String input) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册