Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteicher2003-10-29 11:43:50 -0500
committerteicher2003-10-29 11:43:50 -0500
commit23328a968a831ca5cd639ca65b228265d8e18fef (patch)
treeab747ef47f3e65209b138fdccd66b97729556858
parent24ea1514035687cae9f24dfe42279580b01f4878 (diff)
downloadeclipse.platform.text-editorWork.tar.gz
eclipse.platform.text-editorWork.tar.xz
eclipse.platform.text-editorWork.zip
fixes bug 45700: Java editing with line number causes unwanted selections...editorWork
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java
index e32dd1f86..1c5fc76d2 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineNumberRulerColumn.java
@@ -103,8 +103,11 @@ public class LineNumberRulerColumn implements IVerticalRulerColumn {
* @see org.eclipse.swt.events.MouseListener#mouseUp(org.eclipse.swt.events.MouseEvent)
*/
public void mouseUp(MouseEvent event) {
- stopSelecting();
- stopAutoScroll();
+ // see bug 45700
+ if (event.button == 1) {
+ stopSelecting();
+ stopAutoScroll();
+ }
}
/*
@@ -112,7 +115,10 @@ public class LineNumberRulerColumn implements IVerticalRulerColumn {
*/
public void mouseDown(MouseEvent event) {
fParentRuler.setLocationOfLastMouseButtonActivity(event.x, event.y);
- startSelecting();
+ // see bug 45700
+ if (event.button == 1) {
+ startSelecting();
+ }
}
/*

Back to the top