Skip to content

Remove quickfix icon from buttons on Problems toll window #1386 #1394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import com.intellij.codeInspection.ProblemDescriptor
import com.intellij.icons.AllIcons
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Iconable
import com.intellij.unscramble.AnalyzeStacktraceUtil
import javax.swing.Icon

/**
* Button that launches the built-in "Analyze Stack Trace" action. Displayed as a quick fix.
Expand All @@ -16,7 +18,7 @@ import com.intellij.unscramble.AnalyzeStacktraceUtil
class AnalyzeStackTraceFix(
private val exceptionMessage: String,
private val stackTraceLines: List<String>
) : LocalQuickFix {
) : LocalQuickFix, Iconable {

/**
* Without `invokeLater` the [com.intellij.execution.impl.ConsoleViewImpl.myPredefinedFilters] will not be filled.
Expand All @@ -42,4 +44,6 @@ class AnalyzeStackTraceFix(
override fun getName() = "Analyze stack trace"

override fun getFamilyName() = name

override fun getIcon(flags: Int): Icon = AllIcons.Actions.Lightning
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import com.intellij.codeInspection.ProblemDescriptor
import com.intellij.openapi.editor.LogicalPosition
import com.intellij.openapi.fileEditor.FileEditorManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Iconable
import com.intellij.openapi.vfs.VfsUtil
import com.intellij.util.ui.EmptyIcon
import javax.swing.Icon
import org.utbot.common.PathUtil.toPath

/**
Expand All @@ -20,7 +23,7 @@ class ViewGeneratedTestFix(
val testFileRelativePath: String,
val lineNumber: Int,
val columnNumber: Int
) : LocalQuickFix {
) : LocalQuickFix, Iconable {

/**
* Navigates the user to the [lineNumber] line of the [testFileRelativePath] file.
Expand All @@ -43,4 +46,6 @@ class ViewGeneratedTestFix(
override fun getName() = "View generated test"

override fun getFamilyName() = name

override fun getIcon(flags: Int): Icon = EmptyIcon.ICON_0
}