Commit d32e934c authored by Dmitry Avdeev's avatar Dmitry Avdeev
Browse files

chameleon action can't be a group

parent 3d30ea6d
Showing with 1 addition and 8 deletions
+1 -8
......@@ -29,7 +29,7 @@ import java.util.Map;
/**
* @author Dmitry Avdeev
*/
public class ChameleonAction extends ActionGroup {
public class ChameleonAction extends AnAction {
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);
......
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