mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make it possible to pass an action instead of Map.Entry
This commit is contained in:
@@ -97,7 +97,8 @@ public class GotoActionAction extends GotoActionBase implements DumbAware {
|
||||
});
|
||||
}
|
||||
else {
|
||||
final AnAction action = (AnAction)((Map.Entry)element).getKey();
|
||||
//element could be AnAction (SearchEverywhere)
|
||||
final AnAction action = element instanceof AnAction ? ((AnAction)element) : (AnAction)((Map.Entry)element).getKey();
|
||||
if (action != null) {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user