Skip to content

Commit

Permalink
quickpick title for database fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
thurka committed Sep 6, 2023
1 parent 5014c7e commit ed85491
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
"# {1} - region id",
"SelectProfile_Description={0} (region: {1})",
"SelectCompartment=Select Compartment",
"SelectDatabase=Select Compartment or Database",
"SelectDatabase=Select Database",
"NoDatabase=No Database available in this Compartment",
"EnterUsername=Enter Username",
"EnterPassword=Enter Password"
})
Expand Down Expand Up @@ -167,13 +168,17 @@ public NotifyDescriptor createInput(NotifyDescriptor.ComposedInput input, int nu
h.start();
h.progress(Bundle.MSG_CollectingItems_Text());
try {
String title;
if (prevItem instanceof TenancyItem) {
values.put(number, getFlatCompartment((TenancyItem) prevItem));
title = Bundle.SelectCompartment();
} else {
values.put(number, getDbs(prevItem));
Map<String, OCIItem> dbs = getDbs(prevItem);
values.put(number, dbs);
title = dbs.isEmpty() ? Bundle.NoDatabase() : Bundle.SelectDatabase();
}
input.setEstimatedNumberOfInputs(input.getEstimatedNumberOfInputs() + 1);
return createQuickPick(values.get(number), Bundle.SelectDatabase());
return createQuickPick(values.get(number), title);
} finally {
h.finish();
}
Expand Down

0 comments on commit ed85491

Please sign in to comment.