mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
GitOrigin-RevId: c7240c1f43c9c67ff2ddbe1486b62950decfeb7d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b6aab58eb9
commit
800a8c110e
+8
-2
@@ -15,6 +15,7 @@ import com.intellij.openapi.util.io.FileUtilRt;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.util.PathUtil;
|
||||
import com.intellij.util.io.URLUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.File;
|
||||
@@ -31,10 +32,11 @@ public class BuildProcessClasspathManager {
|
||||
|
||||
private volatile List<String> myCompileServerPluginsClasspath;
|
||||
|
||||
public BuildProcessClasspathManager(Disposable parentDisposable) {
|
||||
public BuildProcessClasspathManager(@NotNull Disposable parentDisposable) {
|
||||
CompileServerPlugin.EP_NAME.addExtensionPointListener(() -> myCompileServerPluginsClasspath = null, parentDisposable);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<String> getBuildProcessPluginsClasspath(Project project) {
|
||||
List<String> staticClasspath = getStaticClasspath();
|
||||
List<String> dynamicClasspath = getDynamicClasspath(project);
|
||||
@@ -48,6 +50,7 @@ public class BuildProcessClasspathManager {
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private List<String> getStaticClasspath() {
|
||||
List<String> cp = myCompileServerPluginsClasspath;
|
||||
if (cp == null) {
|
||||
@@ -56,6 +59,7 @@ public class BuildProcessClasspathManager {
|
||||
return cp;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static List<String> computeCompileServerPluginsClasspath() {
|
||||
final List<String> classpath = new ArrayList<>();
|
||||
|
||||
@@ -132,7 +136,7 @@ public class BuildProcessClasspathManager {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private static File getPluginDir(IdeaPluginDescriptor plugin) {
|
||||
private static File getPluginDir(@NotNull IdeaPluginDescriptor plugin) {
|
||||
String pluginDirName = StringUtil.getShortName(plugin.getPluginId().getIdString());
|
||||
String extraDir = System.getProperty("idea.external.build.development.plugins.dir");
|
||||
if (extraDir != null) {
|
||||
@@ -148,6 +152,7 @@ public class BuildProcessClasspathManager {
|
||||
return pluginHome.isDirectory() ? pluginHome : null;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static List<String> getDynamicClasspath(Project project) {
|
||||
final List<String> classpath = new ArrayList<>();
|
||||
for (BuildProcessParametersProvider provider : BuildProcessParametersProvider.EP_NAME.getExtensionList(project)) {
|
||||
@@ -156,6 +161,7 @@ public class BuildProcessClasspathManager {
|
||||
return classpath;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static List<String> getLauncherClasspath(Project project) {
|
||||
final List<String> classpath = new ArrayList<>();
|
||||
for (BuildProcessParametersProvider provider : BuildProcessParametersProvider.EP_NAME.getExtensionList(project)) {
|
||||
|
||||
+1
@@ -47,6 +47,7 @@ public class BuildProcessCustomPluginsConfiguration implements PersistentStateCo
|
||||
return myState.myProjectLibraries;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<String> getCustomPluginsClasspath() {
|
||||
return ReadAction.compute(() -> {
|
||||
List<String> result = new ArrayList<>();
|
||||
|
||||
+1
-6
@@ -91,12 +91,7 @@ public abstract class InspectionProfileSchemesModel implements SchemesModel<Insp
|
||||
}
|
||||
|
||||
private void removeProfile(@NotNull InspectionProfileImpl profile) {
|
||||
for (SingleInspectionProfilePanel panel : myProfilePanels) {
|
||||
if (panel.getProfile().equals(profile)) {
|
||||
myProfilePanels.remove(panel);
|
||||
break;
|
||||
}
|
||||
}
|
||||
myProfilePanels.removeIf(panel -> panel.getProfile().equals(profile));
|
||||
}
|
||||
|
||||
void updatePanel(@NotNull InspectionProfileSchemesPanel panel) {
|
||||
|
||||
Reference in New Issue
Block a user