Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
9473d00a
Commit
9473d00a
authored
6 years ago
by
Alexandr Suhinin
Browse files
Options
Download
Email Patches
Plain Diff
fix: process settings link on inspection toolwindow
IDEA-208728
parent
b450c38b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java
+17
-5
...rc/com/intellij/codeInspection/ui/InspectionNodeInfo.java
with
17 additions
and
5 deletions
+17
-5
platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionNodeInfo.java
+
17
-
5
View file @
9473d00a
...
...
@@ -7,16 +7,15 @@ import com.intellij.codeInspection.actions.RunInspectionAction;
import
com.intellij.codeInspection.ex.InspectionProfileImpl
;
import
com.intellij.codeInspection.ex.InspectionToolWrapper
;
import
com.intellij.diagnostic.PluginException
;
import
com.intellij.ide.BrowserUtil
;
import
com.intellij.ide.actions.ShowSettingsUtilImpl
;
import
com.intellij.openapi.diagnostic.Logger
;
import
com.intellij.openapi.project.Project
;
import
com.intellij.openapi.util.text.StringUtil
;
import
com.intellij.profile.codeInspection.InspectionProjectProfileManager
;
import
com.intellij.profile.codeInspection.ui.SingleInspectionProfilePanel
;
import
com.intellij.profile.codeInspection.ui.inspectionsTree.InspectionsConfigTreeTable
;
import
com.intellij.ui.BrowserHyperlinkListener
;
import
com.intellij.ui.ClickListener
;
import
com.intellij.ui.JBColor
;
import
com.intellij.ui.ScrollPaneFactory
;
import
com.intellij.ui.*
;
import
com.intellij.ui.components.JBLabel
;
import
com.intellij.ui.components.JBLabelDecorator
;
import
com.intellij.ui.components.panels.StatelessCardLayout
;
...
...
@@ -26,6 +25,7 @@ import com.intellij.util.ui.UIUtil;
import
org.jetbrains.annotations.NotNull
;
import
javax.swing.*
;
import
javax.swing.event.HyperlinkEvent
;
import
java.awt.*
;
import
java.awt.event.MouseEvent
;
import
java.util.regex.Matcher
;
...
...
@@ -68,7 +68,19 @@ public class InspectionNodeInfo extends JPanel {
description
.
setEditable
(
false
);
description
.
setOpaque
(
false
);
description
.
setBackground
(
UIUtil
.
getLabelBackground
());
description
.
addHyperlinkListener
(
BrowserHyperlinkListener
.
INSTANCE
);
description
.
addHyperlinkListener
(
new
HyperlinkAdapter
()
{
@Override
protected
void
hyperlinkActivated
(
HyperlinkEvent
e
)
{
String
prefix
=
SingleInspectionProfilePanel
.
SETTINGS
;
String
description
=
e
.
getDescription
();
if
(
description
.
startsWith
(
prefix
))
{
String
id
=
description
.
substring
(
prefix
.
length
());
ShowSettingsUtilImpl
.
showSettingsDialog
(
project
,
id
,
""
);
}
else
{
BrowserUtil
.
browse
(
description
);
}
}
});
String
descriptionText
=
toolWrapper
.
loadDescription
();
if
(
descriptionText
==
null
)
{
InspectionEP
extension
=
toolWrapper
.
getExtension
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help