Package com.intellij.openapi.actionSystem

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


        newAction.getTemplatePresentation().setIcon(action.getTemplatePresentation().getIcon());
        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


        if (wrappedAction == null) {
            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.