mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-101776 Gradle: Avoid ide hang on auto-import
Don't call to LibraryImpl.getFiles() as that takes too much time for libraries with huge number of jars
This commit is contained in:
+3
@@ -77,6 +77,9 @@ public class GradleProjectStructureNodeComparator implements Comparator<GradlePr
|
||||
if (id.getType() == GradleEntityType.SYNTHETIC) {
|
||||
return SYNTHETIC_WEIGHT;
|
||||
}
|
||||
else if (id.getType() == GradleEntityType.JAR) {
|
||||
return JAR_WEIGHT;
|
||||
}
|
||||
Object entity = id.mapToEntity(myContext);
|
||||
if (entity instanceof AbstractGradleCompositeEntity) {
|
||||
entity = ((AbstractGradleCompositeEntity)entity).getIdeEntity();
|
||||
|
||||
Reference in New Issue
Block a user