aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2010-11-11 16:22:21 -0800
committerAndroid Code Review <code-review@android.com>2010-11-11 16:22:21 -0800
commiteaba36a626658068c94addcdfb1c8f88007e3009 (patch)
tree4d057266a6e34906d12cedef12df2c05f6f5c689
parent652e5fc78098316580b668d41fd5b6162915c727 (diff)
parent3d3062da8dbbe62c0bb2ed02b36c20ea4ee23991 (diff)
downloadsdk-eaba36a626658068c94addcdfb1c8f88007e3009.zip
sdk-eaba36a626658068c94addcdfb1c8f88007e3009.tar.gz
sdk-eaba36a626658068c94addcdfb1c8f88007e3009.tar.bz2
Merge "Fix issue 12251: double click handling"
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GestureManager.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GestureManager.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GestureManager.java
index 9da3599..585f354 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GestureManager.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GestureManager.java
@@ -332,7 +332,12 @@ public class GestureManager {
}
public void mouseDoubleClick(MouseEvent e) {
- mCanvas.showXml(e);
+ // SWT delivers a double click event even if you click two different buttons
+ // in rapid succession. In any case, we only want to let you double click the
+ // first button to warp to XML:
+ if (e.button == 1) {
+ mCanvas.showXml(e);
+ }
}
// --- KeyListener ---