mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
076bfd726f
commit
3237e54a34
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user