diff options
author | Dani Megert | 2014-05-21 16:57:59 +0000 |
---|---|---|
committer | Markus Keller | 2014-05-21 16:57:59 +0000 |
commit | 96ada654861aca147c33688a823d6f408d228d0e (patch) | |
tree | 873ea7312fdbba5fc686914de711646600656fe0 | |
parent | ca57b300d79431c27b32ae2113919be546cc42d9 (diff) | |
download | eclipse.platform.text-96ada654861aca147c33688a823d6f408d228d0e.tar.gz eclipse.platform.text-96ada654861aca147c33688a823d6f408d228d0e.tar.xz eclipse.platform.text-96ada654861aca147c33688a823d6f408d228d0e.zip |
Bug 434791: [inline][quick assist] Delete key does not work after Inline local variableI20140526-2000I20140525-2000I20140524-1500I20140523-2000I20140522-1330I20140522-1230I20140522-1100I20140521-2000
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java | 16 |
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 a0b465b37a8..595988aebcb 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, 2013 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 @@ -3969,6 +3969,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; @@ -4058,6 +4063,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; + } } |