mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-frontend] IDEA-366600 Get rid of additional "Java for JetBrains Client" plugin
- don't use `Class.forName` GitOrigin-RevId: b5d22f3014fab7606f6364e77662104f84b040b0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a813a7fc23
commit
d514a514e7
@@ -112,6 +112,7 @@ jvm_library(
|
||||
"//libraries/kotlinx/serialization/core",
|
||||
],
|
||||
exports = [
|
||||
"//java/openapi:java",
|
||||
"//platform/lang-impl",
|
||||
"//java/java-psi-impl:psi-impl",
|
||||
"//java/java-frontback-impl:frontback-impl",
|
||||
@@ -226,6 +227,7 @@ jvm_library(
|
||||
"//libraries/kotlinx/serialization/core",
|
||||
],
|
||||
exports = [
|
||||
"//java/openapi:java",
|
||||
"//platform/lang-impl",
|
||||
"//java/java-psi-impl:psi-impl",
|
||||
"//java/java-frontback-impl:frontback-impl",
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<orderEntry type="module" module-name="intellij.platform.structureView.impl" />
|
||||
<orderEntry type="module" module-name="intellij.platform.usageView.impl" />
|
||||
<orderEntry type="module" module-name="intellij.platform.util" />
|
||||
<orderEntry type="module" module-name="intellij.java" />
|
||||
<orderEntry type="module" module-name="intellij.java" exported="" />
|
||||
<orderEntry type="module" module-name="intellij.libraries.oro.matcher" />
|
||||
<orderEntry type="module" module-name="intellij.xml.impl" />
|
||||
<orderEntry type="module" module-name="intellij.java.rt" />
|
||||
|
||||
+6
-7
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.module;
|
||||
|
||||
import com.intellij.icons.AllIcons;
|
||||
@@ -9,16 +9,11 @@ import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.roots.ModuleRootManager;
|
||||
import com.intellij.psi.CommonClassNames;
|
||||
import com.intellij.psi.JavaPsiFacade;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.*;
|
||||
import org.jetbrains.jps.model.java.JavaModuleSourceRootTypes;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
import static com.intellij.workspaceModel.ide.legacyBridge.impl.java.JavaModuleTypeUtils.JAVA_MODULE_ENTITY_TYPE_ID_NAME;
|
||||
|
||||
public class JavaModuleType extends ModuleType<JavaModuleBuilder> {
|
||||
public static ModuleType<?> getModuleType() {
|
||||
return ModuleTypeManager.getInstance().findByID(JAVA_MODULE_ENTITY_TYPE_ID_NAME);
|
||||
@@ -27,10 +22,14 @@ public class JavaModuleType extends ModuleType<JavaModuleBuilder> {
|
||||
public static final String JAVA_GROUP = "Java";
|
||||
public static final String BUILD_TOOLS_GROUP = "Build Tools";
|
||||
|
||||
public static final String JAVA_MODULE_ENTITY_TYPE_ID_NAME = "JAVA_MODULE";
|
||||
|
||||
@ApiStatus.Internal
|
||||
public JavaModuleType() {
|
||||
this(JAVA_MODULE_ENTITY_TYPE_ID_NAME);
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
protected JavaModuleType(@NonNls String id) {
|
||||
super(id);
|
||||
}
|
||||
@@ -18,8 +18,7 @@ public final class StdModuleTypes {
|
||||
|
||||
static {
|
||||
try {
|
||||
//noinspection unchecked
|
||||
JAVA = (ModuleType<JavaModuleBuilder>)Class.forName("com.intellij.openapi.module.JavaModuleType").newInstance();
|
||||
JAVA = new JavaModuleType();
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new IllegalArgumentException(e);
|
||||
|
||||
@@ -67,6 +67,7 @@ jvm_library(
|
||||
"//java/testFramework/backend",
|
||||
],
|
||||
exports = [
|
||||
"//java/openapi:java",
|
||||
"//java/testFramework/shared",
|
||||
"//platform/util",
|
||||
"//platform/lang-api:lang",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="intellij.java" />
|
||||
<orderEntry type="module" module-name="intellij.java" exported="" />
|
||||
<orderEntry type="module" module-name="intellij.java.testFramework.shared" exported="" />
|
||||
<orderEntry type="module" module-name="intellij.platform.analysis" />
|
||||
<orderEntry type="module" module-name="intellij.platform.codeStyle" />
|
||||
|
||||
Reference in New Issue
Block a user