Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
93135497
Commit
93135497
authored
7 years ago
by
vadim.lomshakov
Browse files
Options
Download
Email Patches
Plain Diff
[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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/platform-api/src/com/intellij/openapi/actionSystem/ForceUpdateAllChildrenActionGroup.kt
+6
-0
...openapi/actionSystem/ForceUpdateAllChildrenActionGroup.kt
platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/Utils.java
+5
-0
...mpl/src/com/intellij/openapi/actionSystem/impl/Utils.java
with
11 additions
and
0 deletions
+11
-0
platform/platform-api/src/com/intellij/openapi/actionSystem/ForceUpdateAllChildrenActionGroup.kt
0 → 100644
+
6
-
0
View file @
93135497
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
This diff is collapsed.
Click to expand it.
platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/Utils.java
+
5
-
0
View file @
93135497
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help