mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
IDEA-359334 Action Gradle.DownloadSources always visible in all AbstractExternalSystemToolWindowFactory implemetations
This commit is contained in:
@@ -32,4 +32,6 @@ class GradleDownloadSourcesAction : ExternalSystemAction() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun isVisible(e: AnActionEvent) = getSystemId(e) == GradleConstants.SYSTEM_ID
|
||||
}
|
||||
@@ -58,7 +58,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)
|
||||
|
||||
Reference in New Issue
Block a user