Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Zou2019-02-28 14:01:51 +0000
committerBin Zou2019-02-28 14:02:02 +0000
commit9556dbecc9e4f06d10116d894956ec668b05b12b (patch)
tree2b929acaa1609bff3813cd25330265d3514013b6
parenta63ada6c742b2f49237c81d2ef827e9b6c7141ec (diff)
downloadeclipse.platform.text-9556dbecc9e4f06d10116d894956ec668b05b12b.tar.gz
eclipse.platform.text-9556dbecc9e4f06d10116d894956ec668b05b12b.tar.xz
eclipse.platform.text-9556dbecc9e4f06d10116d894956ec668b05b12b.zip
Bug 544867 - [Generic Editor] ExtensionBasedTextEditor does not allowS4_11_0_RC1I20190302-1800I20190302-0600I20190301-1800I20190301-0040
its subclasses to setKeyBindingScopes. Delete setKeyBindingScopes method and override initializeKeyBindingScopes method instead. Signed-off-by: Bin Zou <bin.zou@cs.ox.ac.uk>
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextEditor.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextEditor.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextEditor.java
index d333f470d..2de082dce 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextEditor.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/ExtensionBasedTextEditor.java
@@ -12,6 +12,7 @@
* Sopot Cela, Mickael Istria (Red Hat Inc.) - initial implementation
* Lucas Bullen (Red Hat Inc.) - Bug 508829 custom reconciler support
* Angelo Zerr <angelo.zerr@gmail.com> - Bug 538111 - [generic editor] Extension point for ICharacterPairMatcher
+ * Bin Zou <zoubin1011@gmail.com> - Bug 544867 - [Generic Editor] ExtensionBasedTextEditor does not allow its subclasses to setKeyBindingScopes
*******************************************************************************/
package org.eclipse.ui.internal.genericeditor;
@@ -57,9 +58,12 @@ public class ExtensionBasedTextEditor extends TextEditor {
setSourceViewerConfiguration(configuration);
}
+ /**
+ * Initializes the key binding scopes of this generic code editor.
+ */
@Override
- protected void setKeyBindingScopes(String[] scopes) {
- super.setKeyBindingScopes(new String[] { CONTEXT_ID });
+ protected void initializeKeyBindingScopes() {
+ setKeyBindingScopes(new String[] { CONTEXT_ID });
}
@Override

Back to the top