-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SLI-1137 Warn user during Open in IDE for issues and propose to remov…
…e filtering if issue is hidden
- Loading branch information
1 parent
cd4ec3e
commit 0aee77e
Showing
4 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/java/org/sonarlint/intellij/notifications/IncludeResolvedIssueAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.sonarlint.intellij.notifications | ||
|
||
import com.intellij.notification.Notification | ||
import com.intellij.notification.NotificationAction | ||
import com.intellij.openapi.actionSystem.AnActionEvent | ||
import org.sonarlint.intellij.util.SonarLintActions | ||
|
||
class IncludeResolvedIssueAction() : NotificationAction("Include Resolved Issues") { | ||
override fun actionPerformed(e: AnActionEvent, notification: Notification) { | ||
e.project?.let { | ||
SonarLintActions.getInstance().includeResolvedIssuesAction().setSelected(e, true) | ||
} | ||
notification.expire() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters