mirror of
https://github.com/Wisser/Jailer.git
synced 2026-05-16 19:38:39 -05:00
added TODO
This commit is contained in:
@@ -192,7 +192,7 @@ public class DbConnectionDialog extends javax.swing.JDialog {
|
||||
*/
|
||||
private Window parent;
|
||||
|
||||
private final ExecutionContext executionContext;
|
||||
final ExecutionContext executionContext;
|
||||
|
||||
/**
|
||||
* Gets connection to DB.
|
||||
@@ -203,6 +203,10 @@ public class DbConnectionDialog extends javax.swing.JDialog {
|
||||
return connect(reason, false);
|
||||
}
|
||||
|
||||
public ExecutionContext getExecutionContext() {
|
||||
return executionContext;
|
||||
}
|
||||
|
||||
private Font font = new JLabel("normal").getFont();
|
||||
private Font normal = font.deriveFont(font.getStyle() & ~Font.BOLD, font.getSize());
|
||||
private Font bold = font.deriveFont(font.getStyle() | Font.BOLD, font.getSize());
|
||||
|
||||
@@ -3915,6 +3915,8 @@ public class DataBrowser extends javax.swing.JFrame {
|
||||
|
||||
private static DataBrowser openNewDataBrowser(DataModel datamodel, DbConnectionDialog dbConnectionDialog,
|
||||
boolean maximize, ExecutionContext executionContext, DataBrowser theDataBrowser) throws Exception {
|
||||
// TODO IMPORTANT: do not copy here
|
||||
ExecutionContext origExecContext = executionContext;
|
||||
if (executionContext != null) {
|
||||
executionContext = new ExecutionContext(executionContext);
|
||||
}
|
||||
@@ -3934,6 +3936,9 @@ public class DataBrowser extends javax.swing.JFrame {
|
||||
DataBrowserContext.getAppName(), null, executionContext);
|
||||
}
|
||||
dbConnectionDialog.autoConnect();
|
||||
if (origExecContext != null) {
|
||||
origExecContext.setCurrentConnectionAlias(dbConnectionDialog.getExecutionContext().getCurrentConnectionAlias());
|
||||
}
|
||||
if (dbConnectionDialog.isConnected || dbConnectionDialog.connect(DataBrowserContext.getAppName(true))) {
|
||||
try {
|
||||
dataBrowser.setConnection(dbConnectionDialog);
|
||||
|
||||
Reference in New Issue
Block a user