mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
popups: invokeLater at onChosen is substitured with doFinalStep
This commit is contained in:
@@ -303,12 +303,11 @@ public class ClasspathPanel extends JPanel {
|
||||
return value.isSelectable();
|
||||
}
|
||||
public PopupStep onChosen(final PopupAction selectedValue, final boolean finalChoice) {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
return doFinalStep(new Runnable() {
|
||||
public void run() {
|
||||
selectedValue.execute();
|
||||
}
|
||||
}, ModalityState.stateForComponent(ClasspathPanel.this));
|
||||
return FINAL_CHOICE;
|
||||
});
|
||||
}
|
||||
@NotNull
|
||||
public String getTextFor(PopupAction value) {
|
||||
|
||||
Reference in New Issue
Block a user