From 3dc9213d5e841fdaf8f4f768a11da3e6448e7e79 Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Sun, 5 Jan 2020 21:30:53 +0300 Subject: [PATCH] mv PyBundle GitOrigin-RevId: 788014dfb0fa12b013f13dc686c2291186215089 --- .../python/run/PyPluginCommonOptionsForm.form | 10 +- .../messages}/PyBundle.properties | 0 python/src/META-INF/command-line.xml | 4 +- python/src/META-INF/python-core-buildout.xml | 2 +- python/src/META-INF/python-core-common.xml | 104 +++++++++--------- python/src/com/jetbrains/python/PyBundle.java | 2 +- .../PyConvertImportIntentionAction.kt | 2 +- .../formatter/PyImportsCodeStylePanel.form | 18 +-- .../formatter/PyOtherCodeStylePanel.form | 10 +- .../inline/PyInlineFunctionProcessor.kt | 2 +- .../move/PyMoveModuleMembersDialog.form | 2 +- .../run/PythonRunConfigurationForm.form | 4 +- .../PythonTestRunConfigurationForm.form | 22 ++-- .../PyTestConfigurationEditor.form | 6 +- 14 files changed, 94 insertions(+), 94 deletions(-) rename python/{src/com/jetbrains/python => pluginResources/messages}/PyBundle.properties (100%) diff --git a/python/pluginCore/impl/src/com/jetbrains/python/run/PyPluginCommonOptionsForm.form b/python/pluginCore/impl/src/com/jetbrains/python/run/PyPluginCommonOptionsForm.form index b4fb87bc7948..44faf2685378 100644 --- a/python/pluginCore/impl/src/com/jetbrains/python/run/PyPluginCommonOptionsForm.form +++ b/python/pluginCore/impl/src/com/jetbrains/python/run/PyPluginCommonOptionsForm.form @@ -19,7 +19,7 @@ - + @@ -36,7 +36,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -54,7 +54,7 @@ - + @@ -86,7 +86,7 @@ - + diff --git a/python/src/com/jetbrains/python/PyBundle.properties b/python/pluginResources/messages/PyBundle.properties similarity index 100% rename from python/src/com/jetbrains/python/PyBundle.properties rename to python/pluginResources/messages/PyBundle.properties diff --git a/python/src/META-INF/command-line.xml b/python/src/META-INF/command-line.xml index e46e874e337d..d578e2b6e6fe 100644 --- a/python/src/META-INF/command-line.xml +++ b/python/src/META-INF/command-line.xml @@ -15,10 +15,10 @@ implementation="com.jetbrains.commandInterface.commandLine.CommandLineReferenceContributor"/> - diff --git a/python/src/META-INF/python-core-buildout.xml b/python/src/META-INF/python-core-buildout.xml index a593ae109526..093f5a6c4e8a 100644 --- a/python/src/META-INF/python-core-buildout.xml +++ b/python/src/META-INF/python-core-buildout.xml @@ -17,7 +17,7 @@ - diff --git a/python/src/META-INF/python-core-common.xml b/python/src/META-INF/python-core-common.xml index 4982043f803a..cc5b2d8154f3 100644 --- a/python/src/META-INF/python-core-common.xml +++ b/python/src/META-INF/python-core-common.xml @@ -2,7 +2,7 @@ - com.jetbrains.python.PyBundle + messages.PyBundle @@ -322,64 +322,64 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + @@ -387,7 +387,7 @@ - + diff --git a/python/src/com/jetbrains/python/PyBundle.java b/python/src/com/jetbrains/python/PyBundle.java index 5c02d4e917bb..b85c600820ff 100644 --- a/python/src/com/jetbrains/python/PyBundle.java +++ b/python/src/com/jetbrains/python/PyBundle.java @@ -21,7 +21,7 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.PropertyKey; public class PyBundle extends DynamicBundle { - @NonNls private static final String BUNDLE = "com.jetbrains.python.PyBundle"; + @NonNls private static final String BUNDLE = "messages.PyBundle"; public static final PyBundle INSTANCE = new PyBundle(); private PyBundle() { super(BUNDLE); } diff --git a/python/src/com/jetbrains/python/codeInsight/intentions/PyConvertImportIntentionAction.kt b/python/src/com/jetbrains/python/codeInsight/intentions/PyConvertImportIntentionAction.kt index 1db0641415f4..d892dad3f474 100644 --- a/python/src/com/jetbrains/python/codeInsight/intentions/PyConvertImportIntentionAction.kt +++ b/python/src/com/jetbrains/python/codeInsight/intentions/PyConvertImportIntentionAction.kt @@ -12,7 +12,7 @@ import com.jetbrains.python.psi.PyFromImportStatement import com.jetbrains.python.psi.PyStatement import org.jetbrains.annotations.PropertyKey -abstract class PyConvertImportIntentionAction(@PropertyKey(resourceBundle = "com.jetbrains.python.PyBundle") intentionText: String) : PyBaseIntentionAction() { +abstract class PyConvertImportIntentionAction(@PropertyKey(resourceBundle = "messages.PyBundle") intentionText: String) : PyBaseIntentionAction() { init { text = PyBundle.message(intentionText) diff --git a/python/src/com/jetbrains/python/formatter/PyImportsCodeStylePanel.form b/python/src/com/jetbrains/python/formatter/PyImportsCodeStylePanel.form index e1b76088b8f4..656782a1e3d1 100644 --- a/python/src/com/jetbrains/python/formatter/PyImportsCodeStylePanel.form +++ b/python/src/com/jetbrains/python/formatter/PyImportsCodeStylePanel.form @@ -22,14 +22,14 @@ - + - + @@ -37,7 +37,7 @@ - + @@ -45,7 +45,7 @@ - + @@ -54,7 +54,7 @@ - + @@ -66,7 +66,7 @@ - + @@ -75,7 +75,7 @@ - + @@ -89,7 +89,7 @@ - + @@ -97,7 +97,7 @@ - + diff --git a/python/src/com/jetbrains/python/formatter/PyOtherCodeStylePanel.form b/python/src/com/jetbrains/python/formatter/PyOtherCodeStylePanel.form index bd8761adc334..ede28b676db3 100644 --- a/python/src/com/jetbrains/python/formatter/PyOtherCodeStylePanel.form +++ b/python/src/com/jetbrains/python/formatter/PyOtherCodeStylePanel.form @@ -36,7 +36,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -62,14 +62,14 @@ - + - + @@ -77,7 +77,7 @@ - + diff --git a/python/src/com/jetbrains/python/refactoring/inline/PyInlineFunctionProcessor.kt b/python/src/com/jetbrains/python/refactoring/inline/PyInlineFunctionProcessor.kt index ce645f130b0b..55c2d0e6eb15 100644 --- a/python/src/com/jetbrains/python/refactoring/inline/PyInlineFunctionProcessor.kt +++ b/python/src/com/jetbrains/python/refactoring/inline/PyInlineFunctionProcessor.kt @@ -79,7 +79,7 @@ class PyInlineFunctionProcessor(project: Project, return showConflicts(conflicts, filtered.toTypedArray()) } - private fun handleUsageError(element: PsiElement, @PropertyKey(resourceBundle = "com.jetbrains.python.PyBundle") error: String, conflicts: MultiMap): Boolean { + private fun handleUsageError(element: PsiElement, @PropertyKey(resourceBundle = "messages.PyBundle") error: String, conflicts: MultiMap): Boolean { val errorText = PyBundle.message(error, myFunction.name) if (myInlineThis) { // shortcut for inlining single reference: show error hint instead of modal dialog diff --git a/python/src/com/jetbrains/python/refactoring/move/PyMoveModuleMembersDialog.form b/python/src/com/jetbrains/python/refactoring/move/PyMoveModuleMembersDialog.form index 77f1d3c693cc..44b4a2f30ac1 100644 --- a/python/src/com/jetbrains/python/refactoring/move/PyMoveModuleMembersDialog.form +++ b/python/src/com/jetbrains/python/refactoring/move/PyMoveModuleMembersDialog.form @@ -16,7 +16,7 @@ - + diff --git a/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.form b/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.form index 451073111adf..8a09131c7721 100644 --- a/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.form +++ b/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.form @@ -15,7 +15,7 @@ - + @@ -76,7 +76,7 @@ - + diff --git a/python/src/com/jetbrains/python/testing/PythonTestRunConfigurationForm.form b/python/src/com/jetbrains/python/testing/PythonTestRunConfigurationForm.form index 5c7ab394ec88..ffe85e084e76 100644 --- a/python/src/com/jetbrains/python/testing/PythonTestRunConfigurationForm.form +++ b/python/src/com/jetbrains/python/testing/PythonTestRunConfigurationForm.form @@ -44,7 +44,7 @@ - + @@ -53,7 +53,7 @@ - + @@ -62,7 +62,7 @@ - + @@ -79,7 +79,7 @@ - + @@ -87,7 +87,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -148,7 +148,7 @@ - + @@ -156,7 +156,7 @@ - + @@ -164,7 +164,7 @@ - + @@ -172,7 +172,7 @@ - + @@ -180,7 +180,7 @@ - + diff --git a/python/src/com/jetbrains/python/testing/pytestLegacy/PyTestConfigurationEditor.form b/python/src/com/jetbrains/python/testing/pytestLegacy/PyTestConfigurationEditor.form index ac45ca6adddf..c230228aee7a 100644 --- a/python/src/com/jetbrains/python/testing/pytestLegacy/PyTestConfigurationEditor.form +++ b/python/src/com/jetbrains/python/testing/pytestLegacy/PyTestConfigurationEditor.form @@ -35,7 +35,7 @@ - + @@ -73,7 +73,7 @@ - + @@ -81,7 +81,7 @@ - +