// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python;

import com.intellij.ide.customize.*;
import com.intellij.openapi.util.Pair;

import javax.swing.*;
import java.util.List;
import java.util.Map;

public class PyCharmCustomizeIDEWizardStepsProvider implements CustomizeIDEWizardStepsProvider {
  @Override
  public void initSteps(CustomizeIDEWizardDialog wizardDialog, List<AbstractCustomizeWizardStep> steps) {
    PluginGroups groups = new PluginGroups() {
      @Override
      protected void initGroups(Map<String, Pair<Icon, List<String>>> tree, Map<String, String> featuredPlugins) {
        addVcsGroup(tree);

        addVimPlugin(featuredPlugins);
        addMarkdownPlugin(featuredPlugins);
        featuredPlugins.put("BashSupport", "Languages:Bash language support:BashSupport");
        featuredPlugins.put(".ignore",
                            "VCS Integration:Support for .gitignore (GIT), .hgignore (Mercurial), .npmignore (NPM), .dockerignore (Docker) etc:mobi.hsz.idea.gitignore");
        featuredPlugins.put("R Language Support", "Languages:R language support:R4Intellij");
        featuredPlugins.put("YAML/Ansible support", "Languages:YAML/Ansible support with Jinja2 tags:YAML/Ansible support");
      }
    };

    steps.add(new CustomizeUIThemeStepPanel());

    if (CustomizeLauncherScriptStep.isAvailable()) {
      steps.add(new CustomizeLauncherScriptStep());
    }

    steps.add(new CustomizePluginsStepPanel(groups));
    steps.add(new CustomizeFeaturedPluginsStepPanel(groups));
  }
}

@@ -938,403 +938,69 @@
 ut(%22
-.ignore%22,%0A                            %22VCS Integration:Support for .gitignore (GIT), .hgignore (Mercurial), .npmignore (NPM), .dockerignore (Docker) etc:mobi.hsz.idea.gitignore%22);%0A        featuredPlugins.put(%22R Language Support%22, %22Languages:R language support:R4Intellij%22);%0A        featuredPlugins.put(%22YAML/Ansible support%22, %22Languages:YAML/Ansible support with Jinja2 tags:YAML/Ansible support
+R Language Support%22, %22Languages:R language support:R4Intellij
 %22);%0A

Remove unstable plugins