summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Dumais2013-04-26 11:12:39 (EDT)
committerWilliam Swanson2013-04-26 11:27:11 (EDT)
commitcadc92f7b6cdc9d859deba6a5878c265f84c2b15 (patch)
tree7c3e3e3222aaf10dbd807a0cf978dbce9141b336
parent12b229dec04925ae07385eb787402cfaf68e3aba (diff)
downloadorg.eclipse.cdt-cadc92f7b6cdc9d859deba6a5878c265f84c2b15.zip
org.eclipse.cdt-cadc92f7b6cdc9d859deba6a5878c265f84c2b15.tar.gz
org.eclipse.cdt-cadc92f7b6cdc9d859deba6a5878c265f84c2b15.tar.bz2
Bug 405735 - [visualizer] Using context menu prevents next selectionrefs/changes/37/12237/3
Change-Id: Iedf7ddedcd5a714bbd7a81650adacb4a301225b8 Reviewed-on: https://git.eclipse.org/r/12237 Reviewed-by: William Swanson <traveler@tilera.com> IP-Clean: William Swanson <traveler@tilera.com> Tested-by: William Swanson <traveler@tilera.com>
-rw-r--r--visualizer/org.eclipse.cdt.visualizer.ui/src/org/eclipse/cdt/visualizer/ui/util/MouseMonitor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/visualizer/org.eclipse.cdt.visualizer.ui/src/org/eclipse/cdt/visualizer/ui/util/MouseMonitor.java b/visualizer/org.eclipse.cdt.visualizer.ui/src/org/eclipse/cdt/visualizer/ui/util/MouseMonitor.java
index 90c44f7..adc5ee2 100644
--- a/visualizer/org.eclipse.cdt.visualizer.ui/src/org/eclipse/cdt/visualizer/ui/util/MouseMonitor.java
+++ b/visualizer/org.eclipse.cdt.visualizer.ui/src/org/eclipse/cdt/visualizer/ui/util/MouseMonitor.java
@@ -7,6 +7,7 @@
*
* Contributors:
* William R. Swanson (Tilera Corporation) - initial API and implementation
+ * Marc Dumais (Ericsson) : Bug 405735
*******************************************************************************/
package org.eclipse.cdt.visualizer.ui.util;
@@ -250,7 +251,8 @@ public class MouseMonitor
/** Invoked when mouse button is pressed */
protected void mouseDownHandler(int button, int x, int y, int keys) {
- if (! m_mouseDown) {
+ // Drag not applicable to right-click
+ if (! m_mouseDown && button != RIGHT_BUTTON) {
m_mouseDown = true;
m_mouseDownPoint.x = x;
m_mouseDownPoint.y = y;