mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix JDBC console wrong initial query bug
This commit is contained in:
@@ -159,6 +159,7 @@ public class LanguageConsoleImpl implements Disposable, TypeSafeDataProvider {
|
||||
myPanel.add(myConsoleEditor.getComponent());
|
||||
|
||||
myHistoryViewer.setHorizontalScrollbarVisible(false);
|
||||
myCurrentEditor = myConsoleEditor;
|
||||
}
|
||||
else {
|
||||
myPanel.removeAll();
|
||||
@@ -168,6 +169,7 @@ public class LanguageConsoleImpl implements Disposable, TypeSafeDataProvider {
|
||||
setConsoleFilePinned(fileManager);
|
||||
|
||||
myHistoryViewer.setHorizontalScrollbarVisible(true);
|
||||
myCurrentEditor = myFullEditor;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -515,14 +517,6 @@ public class LanguageConsoleImpl implements Disposable, TypeSafeDataProvider {
|
||||
queueUiUpdate(false);
|
||||
}
|
||||
});
|
||||
editor.getContentComponent().addFocusListener(new FocusListener() {
|
||||
public void focusGained(final FocusEvent e) {
|
||||
myCurrentEditor = editor;
|
||||
}
|
||||
|
||||
public void focusLost(final FocusEvent e) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user