Commit 93135497 authored by vadim.lomshakov's avatar vadim.lomshakov
Browse files

[rider]: introduced marker interface for action group to force expanding the whole action tree

parent c202c3da
Branches unavailable Tags unavailable
No related merge requests found
Showing with 11 additions and 0 deletions
+11 -0
package com.intellij.openapi.actionSystem
/**
* Marker interface to indicate that the action group must be expanded fully
*/
interface ForceUpdateAllChildrenActionGroup
\ No newline at end of file
......@@ -207,6 +207,11 @@ public class Utils{
}
if (child instanceof ActionGroup) {
ActionGroup actionGroup = (ActionGroup)child;
if (actionGroup instanceof ForceUpdateAllChildrenActionGroup && actionGroup.isPopup()) {
expandActionGroup(isInModalContext, actionGroup, new ArrayList<>(), presentationFactory, context, place, actionManager, transparentOnly, hideDisabled);
}
boolean skip = hideDisabled && !hasEnabledChildren(actionGroup, presentationFactory, context, place);
if (skip) {
continue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment