From 1395f318e8b1fc73b6860b5c1a77b4f66fbe9735 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 6 Apr 2011 19:54:04 +0400 Subject: [PATCH] productivity for hor scrolling --- .../openapi/keymap/impl/IdeMouseEventDispatcher.java | 2 ++ .../src/messages/FeatureStatisticsBundle.properties | 1 + .../src/tips/HorizontalScrolling.html | 9 +++++++++ resources/src/ProductivityFeaturesRegistry.xml | 7 +++++++ 4 files changed, 19 insertions(+) create mode 100644 platform/platform-resources-en/src/tips/HorizontalScrolling.html diff --git a/platform/platform-impl/src/com/intellij/openapi/keymap/impl/IdeMouseEventDispatcher.java b/platform/platform-impl/src/com/intellij/openapi/keymap/impl/IdeMouseEventDispatcher.java index 02ba4200c9a1..8626acdb780c 100644 --- a/platform/platform-impl/src/com/intellij/openapi/keymap/impl/IdeMouseEventDispatcher.java +++ b/platform/platform-impl/src/com/intellij/openapi/keymap/impl/IdeMouseEventDispatcher.java @@ -15,6 +15,7 @@ */ package com.intellij.openapi.keymap.impl; +import com.intellij.featureStatistics.FeatureUsageTracker; import com.intellij.ide.DataManager; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.actionSystem.ex.ActionManagerEx; @@ -187,6 +188,7 @@ public final class IdeMouseEventDispatcher { } private static boolean doHorizontalScrolling(Component c, MouseWheelEvent me) { + FeatureUsageTracker.getInstance().triggerFeatureUsed("ui.horizontal.scrolling"); final JScrollBar scrollBar = findHorizontalScrollBar(c); if (scrollBar != null) { scrollBar.setValue(scrollBar.getValue() + getScrollAmount(c, me, scrollBar)); diff --git a/platform/platform-resources-en/src/messages/FeatureStatisticsBundle.properties b/platform/platform-resources-en/src/messages/FeatureStatisticsBundle.properties index cb008d728f92..36f379cc0036 100644 --- a/platform/platform-resources-en/src/messages/FeatureStatisticsBundle.properties +++ b/platform/platform-resources-en/src/messages/FeatureStatisticsBundle.properties @@ -77,6 +77,7 @@ refactoring.rename=Rename refactoring.copyClass=Copy Class refactoring ui.tree.speedsearch=Speed search in trees ui.scheme.quickswitch=Quick switch scheme +ui.horizontal.scrolling=Horizontal Scrolling # suppress inspection "UnusedProperty" ui.recentchanges=Recent changes diff --git a/platform/platform-resources-en/src/tips/HorizontalScrolling.html b/platform/platform-resources-en/src/tips/HorizontalScrolling.html new file mode 100644 index 000000000000..44e1340f7e42 --- /dev/null +++ b/platform/platform-resources-en/src/tips/HorizontalScrolling.html @@ -0,0 +1,9 @@ + + + + + + +
Enable Horizontal Scrolling with mouse wheel by holding SHIFT button
+ + \ No newline at end of file diff --git a/resources/src/ProductivityFeaturesRegistry.xml b/resources/src/ProductivityFeaturesRegistry.xml index aee5801c3a1c..7662364d87a1 100644 --- a/resources/src/ProductivityFeaturesRegistry.xml +++ b/resources/src/ProductivityFeaturesRegistry.xml @@ -414,6 +414,13 @@ successive-show="5" min-usage-count="1" /> +