Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatja Zavozina2018-09-14 02:05:04 -0400
committerKatja Zavozina2018-09-14 02:06:19 -0400
commit591ba6ddca9d65cd6b0631aebd92831c8cabc251 (patch)
treed6a05dd210b50fbbf03e6412803c3c9069b9ac29
parentbfe82f0bb31a47bcf040d4e0520058a382daff1c (diff)
downloadeclipse.platform.text-591ba6ddca9d65cd6b0631aebd92831c8cabc251.tar.gz
eclipse.platform.text-591ba6ddca9d65cd6b0631aebd92831c8cabc251.tar.xz
eclipse.platform.text-591ba6ddca9d65cd6b0631aebd92831c8cabc251.zip
Fix self comparison of field with itselfI20180914-0620
Change-Id: I3acf3f80f81e122c48058abc335afb693f21ce3f Signed-off-by: Katja Zavozina <ekaterina.zavozina@sap.com>
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java
index c0f351fed..af3c1c944 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/HyperlinkDetectorsConfigurationBlock.java
@@ -234,7 +234,7 @@ class HyperlinkDetectorsConfigurationBlock implements IPreferenceConfigurationBl
@Override
public void keyReleased(KeyEvent e) {
- if (isModifierCandidate && e.stateMask > 0 && e.stateMask == e.stateMask && e.character == 0) {// && e.time -time < 1000) {
+ if (isModifierCandidate && e.stateMask > 0 && e.character == 0) {// && e.time -time < 1000) {
String modifierString= fHyperlinkDefaultKeyModifierText.getText();
Point selection= fHyperlinkDefaultKeyModifierText.getSelection();
int i= selection.x - 1;
@@ -340,7 +340,7 @@ class HyperlinkDetectorsConfigurationBlock implements IPreferenceConfigurationBl
@Override
public void keyReleased(KeyEvent e) {
- if (isModifierCandidate && e.stateMask > 0 && e.stateMask == e.stateMask && e.character == 0) {// && e.time -time < 1000) {
+ if (isModifierCandidate && e.stateMask > 0 && e.character == 0) {// && e.time -time < 1000) {
String modifierString= fHyperlinkKeyModifierText.getText();
Point selection= fHyperlinkKeyModifierText.getSelection();
int i= selection.x - 1;

Back to the top