productivity for hor scrolling

This commit is contained in:
Konstantin Bulenkov
2011-04-06 19:56:08 +04:00
parent 2acdc06da9
commit 1395f318e8
4 changed files with 19 additions and 0 deletions
@@ -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));
@@ -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
@@ -0,0 +1,9 @@
<html>
<body style="font-family: Verdana; font-size: 13;" LEFTMARGIN="25" TOPMARGIN="25">
<table cellpadding="15" width="98%" border="0">
<tr>
<td>Enable Horizontal Scrolling with mouse wheel by holding <font style="font-family: Verdana; font-weight:bold; size=4; color=#993300;">SHIFT</font> button</td>
</tr>
</table>
</body>
</html>
@@ -414,6 +414,13 @@
successive-show="5"
min-usage-count="1"
/>
<feature
id="ui.horizontal.scrolling"
tip-file="HorizontalScrolling.html"
first-show="1"
successive-show="1"
min-usage-count="1"
/>
<!-- TODO: Uncomment usage in InsertPathAction when FeatureUsageTracker goes to OpenApi
<feature
id="ui.commandLine.insertPath"