Example usage for com.intellij.openapi.actionSystem IdeActions GROUP_GENERATE

List of usage examples for com.intellij.openapi.actionSystem IdeActions GROUP_GENERATE

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem IdeActions GROUP_GENERATE.

Prototype

String GROUP_GENERATE

To view the source code for com.intellij.openapi.actionSystem IdeActions GROUP_GENERATE.

Click Source Link

Usage

From source file:com.intellij.codeInsight.generation.actions.GenerateAction.java

License:Apache License

private static DefaultActionGroup getGroup() {
    return (DefaultActionGroup) ActionManager.getInstance().getAction(IdeActions.GROUP_GENERATE);
}

From source file:com.intellij.codeInsight.generation.actions.GenerateAction.java

License:Apache License

@Override
public void preload() {
    ((ActionManagerImpl) ActionManager.getInstance()).preloadActionGroup(IdeActions.GROUP_GENERATE);
}

From source file:com.sudodev.intellij.reactiveaccessor.PluginRegistration.java

License:Apache License

public void initComponent() {
    ActionManager am = ActionManager.getInstance();
    AccessorAction action = new AccessorAction();
    // Passes an instance of your custom TextBoxes class to the registerAction method of the ActionManager class.
    am.registerAction("ReactiveAccessor", action);
    // Gets an instance of the WindowMenu action group.
    DefaultActionGroup windowM = (DefaultActionGroup) am.getAction(IdeActions.GROUP_GENERATE);
    // Adds a separator and a new menu command to the WindowMenu group on the main menu.
    windowM.add(action);//  w  w w .  jav  a 2s  . c  om
}