Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/HyperlinkManager.java')
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/HyperlinkManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/HyperlinkManager.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/HyperlinkManager.java
index f858f8d84ff..cb644299c52 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/HyperlinkManager.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/HyperlinkManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -408,7 +408,7 @@ public class HyperlinkManager implements ITextListener, Listener, KeyListener, M
return;
}
- if (text.getSelectionCount() != 0) {
+ if (text.isTextSelected()) {
deactivate();
return;
}
@@ -461,7 +461,7 @@ public class HyperlinkManager implements ITextListener, Listener, KeyListener, M
return;
}
- if ((event.stateMask & SWT.BUTTON1) != 0 && text.getSelectionCount() != 0) {
+ if ((event.stateMask & SWT.BUTTON1) != 0 && text.isTextSelected()) {
deactivate();
return;
}

Back to the top