Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
f6e7448d
Commit
f6e7448d
authored
6 years ago
by
Dmitry Jemerov
Browse files
Options
Download
Email Patches
Plain Diff
Dedicated method to obtain feature ID when reporting icon clicks to FUS (IDEA-CR-46018)
parent
49ca914d
Branches unavailable
Tags unavailable
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/editor-ui-api/src/com/intellij/openapi/editor/markup/GutterIconRenderer.java
+4
-0
...om/intellij/openapi/editor/markup/GutterIconRenderer.java
platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorGutterComponentImpl.java
+1
-1
...tellij/openapi/editor/impl/EditorGutterComponentImpl.java
with
5 additions
and
1 deletion
+5
-1
platform/editor-ui-api/src/com/intellij/openapi/editor/markup/GutterIconRenderer.java
+
4
-
0
View file @
f6e7448d
...
...
@@ -121,6 +121,10 @@ public abstract class GutterIconRenderer implements GutterMark, PossiblyDumbAwar
return
getAccessibleName
(
getIcon
(),
"icon: "
);
}
public
final
String
getFeatureId
()
{
return
getAccessibleName
(
getIcon
(),
""
);
}
private
static
String
getAccessibleName
(
@Nullable
Icon
icon
,
@NotNull
String
prefix
)
{
if
(
icon
instanceof
RetrievableIcon
)
{
return
getAccessibleName
(((
RetrievableIcon
)
icon
).
retrieveIcon
(),
prefix
);
...
...
This diff is collapsed.
Click to expand it.
platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorGutterComponentImpl.java
+
1
-
1
View file @
f6e7448d
...
...
@@ -1780,7 +1780,7 @@ class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
}
if
(
clickAction
!=
null
)
{
if
(
PluginInfoDetectorKt
.
getPluginInfo
(
renderer
.
getClass
()).
isSafeToReport
())
{
FUCounterUsageLogger
.
getInstance
().
logEvent
(
"gutter.icon.click"
,
renderer
.
get
AccessibleName
());
FUCounterUsageLogger
.
getInstance
().
logEvent
(
"gutter.icon.click"
,
renderer
.
get
FeatureId
());
}
performAction
(
clickAction
,
e
,
ActionPlaces
.
EDITOR_GUTTER
,
myEditor
.
getDataContext
());
...
...
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