IDEA-100040 Gradle: JetGradle tool window: Remove action probably should be disabled for outdated librariesw

This commit is contained in:
Denis.Zhdanov
2013-01-30 13:01:04 +04:00
parent a138692d89
commit fdecdee7c5
@@ -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*/)
{