From 34c72f2cdf33c7d74df6aae2b3845bbd38fcfb50 Mon Sep 17 00:00:00 2001 From: Maria Filipanova Date: Wed, 4 Jun 2025 16:36:08 +0200 Subject: [PATCH] IJPL-185506: structure view modules as content ones GitOrigin-RevId: 35d7101b8f71f2d963aecae897563cd4eb8b3f5c --- .../intellij/build/impl/PlatformModules.kt | 1 - .../platform-resources/src/META-INF/XmlPlugin.xml | 10 ---------- .../src/META-INF/xml-modules.xml | 2 ++ .../intellij.xml.structureView.iml | 1 + .../resources/intellij.xml.structureView.xml | 15 +++++++++++++++ xml/xml-structure-view-impl/BUILD.bazel | 11 +++++++++-- .../intellij.xml.structureView.impl.iml | 1 + .../resources/intellij.xml.structureView.impl.xml | 14 ++++++++++++++ 8 files changed, 42 insertions(+), 13 deletions(-) create mode 100644 xml/xml-structure-view-api/resources/intellij.xml.structureView.xml create mode 100644 xml/xml-structure-view-impl/resources/intellij.xml.structureView.impl.xml diff --git a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PlatformModules.kt b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PlatformModules.kt index e5a4af81a4a7..5e68811391d2 100644 --- a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PlatformModules.kt +++ b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/PlatformModules.kt @@ -48,7 +48,6 @@ private val PLATFORM_API_MODULES = java.util.List.of( "intellij.platform.execution", "intellij.xml", "intellij.xml.psi", - "intellij.xml.structureView", "intellij.platform.kernel", ) diff --git a/platform/platform-resources/src/META-INF/XmlPlugin.xml b/platform/platform-resources/src/META-INF/XmlPlugin.xml index 25a32d98c46a..860928e4effa 100644 --- a/platform/platform-resources/src/META-INF/XmlPlugin.xml +++ b/platform/platform-resources/src/META-INF/XmlPlugin.xml @@ -9,10 +9,6 @@ - - - - @@ -48,10 +44,6 @@ - - - - @@ -60,8 +52,6 @@ - - + + \ No newline at end of file diff --git a/xml/xml-structure-view-api/intellij.xml.structureView.iml b/xml/xml-structure-view-api/intellij.xml.structureView.iml index 6560be60229b..ce192b3b8b75 100644 --- a/xml/xml-structure-view-api/intellij.xml.structureView.iml +++ b/xml/xml-structure-view-api/intellij.xml.structureView.iml @@ -3,6 +3,7 @@ + diff --git a/xml/xml-structure-view-api/resources/intellij.xml.structureView.xml b/xml/xml-structure-view-api/resources/intellij.xml.structureView.xml new file mode 100644 index 000000000000..17069d397cb9 --- /dev/null +++ b/xml/xml-structure-view-api/resources/intellij.xml.structureView.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/xml/xml-structure-view-impl/BUILD.bazel b/xml/xml-structure-view-impl/BUILD.bazel index 10457ae002bf..05963a5c14f1 100644 --- a/xml/xml-structure-view-impl/BUILD.bazel +++ b/xml/xml-structure-view-impl/BUILD.bazel @@ -1,5 +1,11 @@ ### auto-generated section `build intellij.xml.structureView.impl` start -load("@rules_jvm//:jvm.bzl", "jvm_library") +load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") + +jvm_resources( + name = "structureView-impl_resources", + files = glob(["resources/**/*"]), + strip_prefix = "resources" +) jvm_library( name = "structureView-impl", @@ -16,6 +22,7 @@ jvm_library( "//platform/util:util-ui", "//xml/xml-parser:parser", "//platform/lang-impl", - ] + ], + runtime_deps = [":structureView-impl_resources"] ) ### auto-generated section `build intellij.xml.structureView.impl` end \ No newline at end of file diff --git a/xml/xml-structure-view-impl/intellij.xml.structureView.impl.iml b/xml/xml-structure-view-impl/intellij.xml.structureView.impl.iml index e1ee5f26d49a..9829130a12b4 100644 --- a/xml/xml-structure-view-impl/intellij.xml.structureView.impl.iml +++ b/xml/xml-structure-view-impl/intellij.xml.structureView.impl.iml @@ -3,6 +3,7 @@ + diff --git a/xml/xml-structure-view-impl/resources/intellij.xml.structureView.impl.xml b/xml/xml-structure-view-impl/resources/intellij.xml.structureView.impl.xml new file mode 100644 index 000000000000..01f062817656 --- /dev/null +++ b/xml/xml-structure-view-impl/resources/intellij.xml.structureView.impl.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file