public void registerGroups()

in Utils/azure-toolkit-ide-libs/azure-toolkit-ide-keyvault-lib/src/main/java/com/microsoft/azure/toolkit/ide/keyvault/KeyVaultActionsContributor.java [131:234]


    public void registerGroups(AzureActionManager am) {
        final ActionGroup serviceActionGroup = new ActionGroup(
                ResourceCommonActionsContributor.REFRESH,
                ResourceCommonActionsContributor.OPEN_AZURE_REFERENCE_BOOK,
                ResourceCommonActionsContributor.BROWSE_SERVICE_AZURE_SAMPLES,
                "---",
                ResourceCommonActionsContributor.CREATE
        );
        am.registerGroup(SERVICE_ACTIONS, serviceActionGroup);

        final ActionGroup keyVaultActionGroup = new ActionGroup(
                ResourceCommonActionsContributor.PIN,
                "---",
                ResourceCommonActionsContributor.REFRESH,
                ResourceCommonActionsContributor.OPEN_AZURE_REFERENCE_BOOK,
                ResourceCommonActionsContributor.BROWSE_SERVICE_AZURE_SAMPLES,
                ResourceCommonActionsContributor.OPEN_PORTAL_URL,
                "---",
                ResourceCommonActionsContributor.CONNECT,
                "---",
                ResourceCommonActionsContributor.DELETE
        );
        am.registerGroup(KEY_VAULT_ACTIONS, keyVaultActionGroup);

        final ActionGroup keyVaultSubModuleActionGroup = new ActionGroup(
                ResourceCommonActionsContributor.REFRESH,
                "---",
                ResourceCommonActionsContributor.CREATE,
                "---",
                ResourceCommonActionsContributor.OPEN_AZURE_REFERENCE_BOOK,
                ResourceCommonActionsContributor.BROWSE_SERVICE_AZURE_SAMPLES
        );
        am.registerGroup(MODULE_ACTIONS, keyVaultSubModuleActionGroup);

        final ActionGroup secretActionGroup = new ActionGroup(
                ResourceCommonActionsContributor.PIN,
                "---",
                ResourceCommonActionsContributor.REFRESH,
                "---",
                am.getAction(ResourceCommonActionsContributor.CREATE).bind(null).withLabel("Create New Version"),
                ResourceCommonActionsContributor.DELETE,
                "---",
                ResourceCommonActionsContributor.SHOW_PROPERTIES,
                am.getAction(SHOW_CREDENTIAL).bind(null).withLabel("Show Secret").enableWhen(s -> s.isEnabled()),
                am.getAction(DOWNLOAD_CREDENTIAL).bind(null).withLabel("Download Secret").enableWhen(s -> s.isEnabled())
        );
        am.registerGroup(SECRET_ACTIONS, secretActionGroup);

        final ActionGroup certificateActionGroup = new ActionGroup(
                ResourceCommonActionsContributor.PIN,
                "---",
                ResourceCommonActionsContributor.REFRESH,
                "---",
                am.getAction(ResourceCommonActionsContributor.CREATE).bind(null).withLabel("Create New Version"),
                ResourceCommonActionsContributor.DELETE,
                "---",
                ResourceCommonActionsContributor.SHOW_PROPERTIES,
                am.getAction(SHOW_CREDENTIAL).bind(null).withLabel("Show Certificate"),
                am.getAction(DOWNLOAD_CREDENTIAL).bind(null).withLabel("Download Certificate")
        );
        am.registerGroup(CERTIFICATE_ACTIONS, certificateActionGroup);

        final ActionGroup keyActionGroup = new ActionGroup(
                ResourceCommonActionsContributor.PIN,
                "---",
                ResourceCommonActionsContributor.REFRESH,
                "---",
                am.getAction(ResourceCommonActionsContributor.CREATE).bind(null).withLabel("Create New Version"),
                ResourceCommonActionsContributor.DELETE,
                "---",
                ResourceCommonActionsContributor.SHOW_PROPERTIES,
                am.getAction(SHOW_CREDENTIAL).bind(null).withLabel("Show Key"),
                am.getAction(DOWNLOAD_CREDENTIAL).bind(null).withLabel("Download Key")
        );
        am.registerGroup(KEY_ACTIONS, keyActionGroup);

        final ActionGroup secretVersionActionGroup = new ActionGroup(
                ENABLE_CREDENTIAL_VERSION,
                DISABLE_CREDENTIAL_VERSION,
                ResourceCommonActionsContributor.SHOW_PROPERTIES,
                am.getAction(SHOW_CREDENTIAL_VERSION).bind(null).withLabel("Show Secret").enableWhen(s -> s.isEnabled()),
                am.getAction(DOWNLOAD_CREDENTIAL_VERSION).bind(null).withLabel("Download Secret").enableWhen(s -> s.isEnabled())
        );
        am.registerGroup(SECRET_VERSION_ACTIONS, secretVersionActionGroup);
        final ActionGroup certificateVersionActionGroup = new ActionGroup(
                ENABLE_CREDENTIAL_VERSION,
                DISABLE_CREDENTIAL_VERSION,
                ResourceCommonActionsContributor.SHOW_PROPERTIES,
                am.getAction(SHOW_CREDENTIAL_VERSION).bind(null).withLabel("Show Certificate"),
                am.getAction(DOWNLOAD_CREDENTIAL_VERSION).bind(null).withLabel("Download Certificate")
        );
        am.registerGroup(CERTIFICATE_VERSION_ACTIONS, certificateVersionActionGroup);
        final ActionGroup keyVersionActionGroup = new ActionGroup(
                ENABLE_CREDENTIAL_VERSION,
                DISABLE_CREDENTIAL_VERSION,
                ResourceCommonActionsContributor.SHOW_PROPERTIES,
                am.getAction(SHOW_CREDENTIAL_VERSION).bind(null).withLabel("Show Key"),
                am.getAction(DOWNLOAD_CREDENTIAL_VERSION).bind(null).withLabel("Download Key")
        );
        am.registerGroup(KEY_VERSION_ACTIONS, keyVersionActionGroup);

        final IActionGroup group = am.getGroup(ResourceCommonActionsContributor.RESOURCE_GROUP_CREATE_ACTIONS);
        group.addAction(GROUP_CREATE_KEY_VAULT);
    }