IJPL-449 IJPL-148300 Sticky lines: fus for line navigate

GitOrigin-RevId: b0150e865ac06de3bebe27f7b3e7f3163a81dbc5
This commit is contained in:
Alexandr Trushev
2024-05-14 13:20:46 +02:00
committed by intellij-monorepo-bot
parent edc7524f5c
commit 39f6d07554
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.editor.impl.stickyLines
import com.intellij.internal.statistic.service.fus.collectors.UIEventLogger
import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.actionSystem.DefaultActionGroup
import com.intellij.openapi.command.CommandProcessor
@@ -336,6 +337,7 @@ internal class StickyLineComponent(private val editor: EditorEx) : JComponent()
UndoConfirmationPolicy.DEFAULT,
editor.document
)
UIEventLogger.StickyLineNavigate.log(editor.project)
}
}
else -> throwUnhandledEvent(event)

View File

@@ -11,7 +11,7 @@ import org.jetbrains.annotations.ApiStatus
@ApiStatus.Internal
object UIEventLogger : CounterUsagesCollector() {
private val uiEventGroup = EventLogGroup("ui.event", 20)
private val uiEventGroup = EventLogGroup("ui.event", 21)
@JvmField
val NavBarShowPopup: EventId = uiEventGroup.registerEvent("NavBarShowPopup")
@@ -160,5 +160,8 @@ object UIEventLogger : CounterUsagesCollector() {
IdeZoomEventFields.finalZoomScalePercent,
IdeZoomEventFields.presentationMode)
@JvmField
val StickyLineNavigate: EventId = uiEventGroup.registerEvent("StickyLineNavigate")
override fun getGroup(): EventLogGroup = uiEventGroup
}