Skip to content

Commit

Permalink
0004539: Explore screen now defaults to query tab (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Sep 15, 2020
1 parent f84f66d commit 53c02eb
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -446,6 +446,9 @@ public void valueChange(ValueChangeEvent event) {
if (panel == null && db != null) {
openQueryWindow(db);
}
if (db != null) {
selectContentTab(getQueryPanelForDb(db));
}
}

String selectedTabCaption = null;
Expand All @@ -462,7 +465,6 @@ public void valueChange(ValueChangeEvent event) {
DatabaseInfoPanel databaseInfoTab = new DatabaseInfoPanel(db, settingsProvider.get(), selectedTabCaption);
Tab tab = contentTabs.addTab(databaseInfoTab, db.getName(), FontAwesome.DATABASE, 0);
tab.setClosable(true);
selectContentTab(databaseInfoTab);
infoTabs.add(databaseInfoTab);
}
if (treeNode != null && treeNode.getType().equals(DbTree.NODE_TYPE_TABLE)) {
Expand All @@ -473,7 +475,6 @@ public void valueChange(ValueChangeEvent event) {
selectedTabCaption);
Tab tab = contentTabs.addTab(tableInfoTab, table.getFullyQualifiedTableName(), FontAwesome.TABLE, 0);
tab.setClosable(true);
selectContentTab(tableInfoTab);
infoTabs.add(tableInfoTab);
}
} else if (treeNode != null && treeNode.getType().equals(DbTree.NODE_TYPE_TRIGGER)) {
Expand All @@ -486,7 +487,6 @@ public void valueChange(ValueChangeEvent event) {
selectedTabCaption);
Tab tab = contentTabs.addTab(triggerInfoTab, trigger.getName(), FontAwesome.CROSSHAIRS, 0);
tab.setClosable(true);
selectContentTab(triggerInfoTab);
infoTabs.add(triggerInfoTab);
}
}
Expand Down

0 comments on commit 53c02eb

Please sign in to comment.