Skip to content

Commit

Permalink
feat: add find bug icon
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 18, 2023
1 parent d74d9fb commit f5ec8c4
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/kotlin/cc/unitmesh/devti/DevtiIcons.kt
Expand Up @@ -5,7 +5,8 @@ import javax.swing.Icon

class DevtiIcons {
companion object {
val STORY: Icon = IconLoader.getIcon("/icons/clickprompt-light.svg", DevtiIcons::class.java)
val STORY: Icon = IconLoader.getIcon("/icons/story.svg", DevtiIcons::class.java)
val FIND_BUG: Icon = IconLoader.getIcon("/icons/find-bug.svg", DevtiIcons::class.java)
}

}
Expand Up @@ -5,6 +5,7 @@ import cc.unitmesh.devti.runconfig.command.FindBugConfigurationProducer
import com.intellij.execution.lineMarker.ExecutorAction
import com.intellij.execution.lineMarker.RunLineMarkerContributor
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiIdentifier

Check warning on line 8 in src/main/kotlin/cc/unitmesh/devti/language/FindBugLineMarkerContributor.kt

View workflow job for this annotation

GitHub Actions / Build

Unused import directive

Unused import directive
import com.intellij.psi.PsiMethod

class FindBugLineMarkerContributor : RunLineMarkerContributor() {
Expand All @@ -13,7 +14,7 @@ class FindBugLineMarkerContributor : RunLineMarkerContributor() {
val actions = ExecutorAction.getActions(0)
val state = FindBugConfigurationProducer().findConfig(listOf(element)) ?: return null
return Info(
DevtiIcons.STORY,
DevtiIcons.FIND_BUG,
{ state.configurationName },
*actions
)
Expand Down
30 changes: 30 additions & 0 deletions src/main/resources/icons/find-bug.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/main/resources/icons/jar-gray.png
Binary file not shown.
File renamed without changes

0 comments on commit f5ec8c4

Please sign in to comment.