Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
d32e934c
Commit
d32e934c
authored
9 years ago
by
Dmitry Avdeev
Browse files
Options
Download
Email Patches
Plain Diff
chameleon action can't be a group
parent
3d30ea6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ChameleonAction.java
+1
-8
...m/intellij/openapi/actionSystem/impl/ChameleonAction.java
with
1 addition
and
8 deletions
+1
-8
platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ChameleonAction.java
+
1
-
8
View file @
d32e934c
...
...
@@ -29,7 +29,7 @@ import java.util.Map;
/**
* @author Dmitry Avdeev
*/
public
class
ChameleonAction
extends
Action
Group
{
public
class
ChameleonAction
extends
An
Action
{
private
final
Map
<
ProjectType
,
AnAction
>
myActions
=
new
HashMap
<
ProjectType
,
AnAction
>();
...
...
@@ -54,13 +54,6 @@ public class ChameleonAction extends ActionGroup {
action
.
actionPerformed
(
e
);
}
@NotNull
@Override
public
AnAction
[]
getChildren
(
@Nullable
AnActionEvent
e
)
{
AnAction
action
=
getAction
(
e
);
return
action
instanceof
ActionGroup
?
((
ActionGroup
)
action
).
getChildren
(
e
)
:
EMPTY_ARRAY
;
}
@Override
public
void
update
(
@NotNull
AnActionEvent
e
)
{
AnAction
action
=
getAction
(
e
);
...
...
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