mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-100040 Gradle: JetGradle tool window: Remove action probably should be disabled for outdated librariesw
This commit is contained in:
+1
@@ -35,6 +35,7 @@ public class GradleRemoveIdeEntityAction extends AbstractGradleSyncTreeNodeActio
|
||||
GradleProjectStructureNode<?> node = iterator.next();
|
||||
GradleProjectStructureNodeDescriptor<? extends GradleEntityId> descriptor = node.getDescriptor();
|
||||
if (descriptor.getAttributes() == GradleTextAttributes.GRADLE_LOCAL_CHANGE
|
||||
|| descriptor.getAttributes() == GradleTextAttributes.OUTDATED_ENTITY
|
||||
|| descriptor.getElement().getType() == GradleEntityType.SYNTHETIC
|
||||
|| node.getParent() == null /* is root, i.e. is a project*/)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user