Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2014-05-21 12:57:59 -0400
committerDani Megert2014-05-28 07:51:53 -0400
commitb80c5ace9d7d72d759481e42604e5b8dc02be484 (patch)
tree2d07494643f7851787fcb151f861724990b5b65b
parent195f1d7f270e8dab12f167c74ae790bf3802943a (diff)
downloadeclipse.platform.text-R3_7_maintenance.tar.gz
eclipse.platform.text-R3_7_maintenance.tar.xz
eclipse.platform.text-R3_7_maintenance.zip
Backported bug 434791: [inline][quick assist] Delete key does not work after Inline local variablev20140528-0839R3_7_maintenance
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
index 064240f65..cec517c00 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2014 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
@@ -3935,6 +3935,11 @@ public class TextViewer extends Viewer implements
return isPrintable();
case HyperlinkManager.OPEN_HYPERLINK:
return fHyperlinkManager != null;
+
+ // Workaround to fix bug 434791 during 4.4 RC2. Will be replaced by official API during 4.5.
+ case -100:
+ return true;
+
}
return false;
@@ -4024,6 +4029,15 @@ public class TextViewer extends Viewer implements
MessageDialog.openInformation(getControl().getShell(),
JFaceTextMessages.getString("TextViewer.open_hyperlink_error_title"), JFaceTextMessages.getString("TextViewer.open_hyperlink_error_message")); //$NON-NLS-1$ //$NON-NLS-2$
return;
+
+ // Workaround to fix bug 434791 during 4.4 RC2. Will be replaced by official API during 4.5.
+ case -100:
+ if (fLastSentSelectionChange != null) {
+ ISelection lastSelection= new TextSelection(getDocument(), fLastSentSelectionChange.getOffset(), fLastSentSelectionChange.getLength());
+ fireSelectionChanged(new SelectionChangedEvent(this, lastSelection));
+ }
+ return;
+
}
}

Back to the top