Customize PyCharm Wizard (PY-25459)

This commit is contained in:
Dmitry Trofimov
2017-11-16 19:23:41 +01:00
parent a68cd04e9f
commit 37c569b39c
12 changed files with 39 additions and 10 deletions
@@ -0,0 +1,38 @@
// 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));
}
}
@@ -15,7 +15,6 @@
*/
package com.jetbrains.python;
import com.intellij.application.options.InitialConfigurationDialog;
import com.intellij.codeInsight.CodeInsightSettings;
import com.intellij.ide.AppLifecycleListener;
import com.intellij.ide.ui.UISettings;
@@ -24,15 +23,12 @@ import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.editor.ex.EditorSettingsExternalizable;
import com.intellij.openapi.fileTypes.FileTypeManager;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.wm.WindowManager;
import com.intellij.psi.codeStyle.CodeStyleSettings;
import com.intellij.psi.codeStyle.CodeStyleSettingsManager;
import com.intellij.util.messages.MessageBus;
import com.jetbrains.python.codeInsight.PyCodeInsightSettings;
import org.jetbrains.annotations.NonNls;
import javax.swing.*;
/**
* Initialize PyCharm.
*
@@ -85,7 +81,6 @@ public class PyCharmInitialConfigurator {
public void welcomeScreenDisplayed() {
ApplicationManager.getApplication().invokeLater(() -> {
propertiesComponent.setValue(DISPLAYED_PROPERTY, "true");
showInitialConfigurationDialog();
});
}
});
@@ -93,9 +88,4 @@ public class PyCharmInitialConfigurator {
Registry.get("ide.ssh.one.time.password").setValue(true);
}
private static void showInitialConfigurationDialog() {
final JFrame frame = WindowManager.getInstance().findVisibleFrame();
new InitialConfigurationDialog(frame, "Python").show();
}
}
@@ -12,6 +12,7 @@
<names product="PyCharm" edition="Community Edition" script="charm"/>
<welcome-screen logo-url="/PyCharmCoreWelcomeScreen.png"/>
<customize-ide-wizard provider="com.jetbrains.python.PyCharmCustomizeIDEWizardStepsProvider"/>
<plugins url="http://plugins.jetbrains.com/"/>
<update-urls check="http://www.jetbrains.com/updates/updates.xml"
Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB