mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
inplace rename: don't show dialogs in confirmation popup selection processing (EA-99472 - assert: ListPopupImpl.lambda$_handleSelect$)
This commit is contained in:
@@ -139,16 +139,10 @@ public class PopupFactoryImpl extends JBPopupFactory {
|
||||
int defaultOptionIndex)
|
||||
{
|
||||
|
||||
final BaseListPopupStep<String> step = new BaseListPopupStep<String>(title, new String[]{yesText, noText}) {
|
||||
final BaseListPopupStep<String> step = new BaseListPopupStep<String>(title, yesText, noText) {
|
||||
@Override
|
||||
public PopupStep onChosen(String selectedValue, final boolean finalChoice) {
|
||||
if (selectedValue.equals(yesText)) {
|
||||
onYes.run();
|
||||
}
|
||||
else {
|
||||
onNo.run();
|
||||
}
|
||||
return FINAL_CHOICE;
|
||||
return doFinalStep(selectedValue.equals(yesText) ? onYes : onNo);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user