IDEA-359334 Action Gradle.DownloadSources always visible in all AbstractExternalSystemToolWindowFactory implemetations

(cherry picked from commit b3857c0eef)
(cherry picked from commit 8722162e99)
(cherry picked from commit 67b89380ff)
This commit is contained in:
Nikita Iarychenko
2025-11-28 11:25:19 +04:00
parent 9568de7728
commit 2a3fab08f6
2 changed files with 5 additions and 1 deletions

View File

@@ -32,4 +32,6 @@ class GradleDownloadSourcesAction : ExternalSystemAction() {
}
}
}
override fun isVisible(e: AnActionEvent) = getSystemId(e) == GradleConstants.SYSTEM_ID
}

View File

@@ -63,7 +63,9 @@ class ToolbarDependencyAnalyzerAction : DependencyAnalyzerAction() {
override fun getSystemId(e: AnActionEvent) = GradleConstants.SYSTEM_ID
override fun isEnabledAndVisible(e: AnActionEvent) = true
override fun isEnabledAndVisible(e: AnActionEvent): Boolean {
return e.getData(ExternalSystemDataKeys.EXTERNAL_SYSTEM_ID) == GradleConstants.SYSTEM_ID
}
override fun setSelectedState(view: DependencyAnalyzerView, e: AnActionEvent) {
viewAction.setSelectedState(view, e)