mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix execution of file-level actions in Alt-Enter menu (IDEA-215945)
GitOrigin-RevId: 7ed1aeed4e6e3b7379568c2c00d42dd7b388e426
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2b7b56f75a
commit
cde0a905d2
@@ -151,7 +151,7 @@ public class EditorNotificationPanel extends JPanel implements IntentionActionPr
|
||||
return 0;
|
||||
}
|
||||
|
||||
private class MyIntentionAction extends AbstractEmptyIntentionAction implements IntentionActionWithOptions, Iconable {
|
||||
private class MyIntentionAction implements IntentionActionWithOptions, Iconable, IntentionAction {
|
||||
private final List<IntentionAction> myOptions = new ArrayList<>();
|
||||
|
||||
private MyIntentionAction() {
|
||||
@@ -165,6 +165,16 @@ public class EditorNotificationPanel extends JPanel implements IntentionActionPr
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void invoke(@NotNull Project project, Editor editor, PsiFile file) throws IncorrectOperationException {
|
||||
myOptions.get(0).invoke(project, editor, file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean startInWriteAction() {
|
||||
return myOptions.get(0).startInWriteAction();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public List<IntentionAction> getOptions() {
|
||||
|
||||
Reference in New Issue
Block a user