[platform] refactoring: rename ContentModuleDescriptor.getModuleIdString to getModuleNameString for consistency (IJPL-206556)

We use 'name' attribute in XML for it, and now the module ID is composed of the name and the namespace, so it would be confusing to use 'id' for 'name'.


(cherry picked from commit dafa24422dbde094a63a57fd307721f6848ad26b)

IJ-CR-178875

GitOrigin-RevId: 08280f7e484c97c8e3bc790f1ff22be66ed0e84f
This commit is contained in:
Nikolay Chashnikov
2025-10-20 20:00:08 +00:00
committed by intellij-monorepo-bot
parent 076bfd726f
commit 3237e54a34
3 changed files with 3 additions and 3 deletions
@@ -622,7 +622,7 @@ class ContentModuleDescriptor(
private val resourceBundleBaseName: String? = raw.resourceBundleBaseName
/** java helper */
fun getModuleIdString(): String = moduleId.name
fun getModuleNameString(): String = moduleId.name
override fun getDescriptorPath(): String = descriptorPath
@@ -440,7 +440,7 @@ public class Invoker implements InvokerMBean {
List<ContentModuleDescriptor> modules = IdeaPluginDescriptorImplKt.getContentModules((IdeaPluginDescriptorImpl)plugin);
for (var module : modules) {
if (Objects.equals(moduleId, module.getModuleIdString())) {
if (Objects.equals(moduleId, module.getModuleNameString())) {
return requireNonNull(module.getPluginClassLoader());
}
}
@@ -33,7 +33,7 @@ public class RunServiceInPlugin extends RunClassInPlugin {
List<ContentModuleDescriptor> modules = IdeaPluginDescriptorImplKt.getContentModules((IdeaPluginDescriptorImpl)plugin);
if (!modules.isEmpty()) {
for (var module : modules) {
if (myClazzName.contains(module.getModuleIdString())) {
if (myClazzName.contains(module.getModuleNameString())) {
loader = module.getClassLoader();
}
}