Search in sources :

Example 1 with CustomizeIdeaWizardStepsProvider

use of com.intellij.ide.customize.CustomizeIdeaWizardStepsProvider in project intellij-community by JetBrains.

the class StartupWizardAction method actionPerformed.

@Override
public void actionPerformed(@NotNull AnActionEvent e) {
    if (ApplicationManager.getApplication().isInternal()) {
        new CustomizeIDEWizardDialog(new CustomizeIdeaWizardStepsProvider()).show();
        return;
    }
    List<ApplicationInfoEx.PluginChooserPage> pages = ApplicationInfoEx.getInstanceEx().getPluginChooserPages();
    if (!pages.isEmpty()) {
        StartupWizard startupWizard = new StartupWizard(e.getProject(), pages);
        String title = ApplicationNamesInfo.getInstance().getFullProductName() + " Plugin Configuration Wizard";
        startupWizard.setTitle(title);
        startupWizard.show();
        if (startupWizard.getExitCode() == DialogWrapper.OK_EXIT_CODE) {
            Messages.showInfoMessage(e.getProject(), "Please restart the IDE to apply changes", title);
        }
    }
}
Also used : CustomizeIdeaWizardStepsProvider(com.intellij.ide.customize.CustomizeIdeaWizardStepsProvider) CustomizeIDEWizardDialog(com.intellij.ide.customize.CustomizeIDEWizardDialog)

Aggregations

CustomizeIDEWizardDialog (com.intellij.ide.customize.CustomizeIDEWizardDialog)1 CustomizeIdeaWizardStepsProvider (com.intellij.ide.customize.CustomizeIdeaWizardStepsProvider)1