Package com.intellij.openapi.actionSystem

Examples of com.intellij.openapi.actionSystem.ActionManager.registerAction()


                for (GoalContainer plugin : plugins) {
                    final Goal[] goals = plugin.getGoals();
                    for (Goal goal : goals) {
                        final AnAction action = new GoalAction(goal);
                        if (actMgr.getAction(goal.getName()) == null)
                            actMgr.registerAction(goal.getName(), action, PLUGIN_ID);
                    }
                }
            }
        };
View Full Code Here


        newAction.getTemplatePresentation().setHoveredIcon(action.getTemplatePresentation().getHoveredIcon());
        newAction.getTemplatePresentation().setDescription(action.getTemplatePresentation().getDescription());
        newAction.copyShortcutFrom(action);

        actionManager.unregisterAction(actionId);
        actionManager.registerAction(actionId, newAction);
        LOG.info("Wrapped action " + actionId);

        return newAction;
    }
View Full Code Here

            LOG.warn("Couldn't unwrap action " + actionId + " because it was not found");
            return;
        }
        if (isActionWrapper(wrappedAction)) {
            actionManager.unregisterAction(actionId);
            actionManager.registerAction(actionId, originalAction(wrappedAction));
            LOG.info("Unwrapped action " + actionId);
        } else {
            LOG.warn("Action " + actionId + " is not wrapped");
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.