popups: invokeLater at onChosen is substitured with doFinalStep

This commit is contained in:
Kirill Kalishev
2010-01-18 16:07:04 +03:00
parent a96068ad6e
commit fd50c0c10e
8 changed files with 27 additions and 36 deletions
@@ -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) {