Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2016-05-20 07:55:50 -0400
committerAlexander Kurtakov2016-05-20 07:55:50 -0400
commit7fc076e412cdc45950cb2b9a92efa9fe1d5433f4 (patch)
tree47dcbdc5a544e39d014e8353abc26089af68a38b
parentf8677d75095f78eb4e0e67ae3398d3f5aef88372 (diff)
downloadorg.eclipse.dltk.sh-7fc076e412cdc45950cb2b9a92efa9fe1d5433f4.tar.gz
org.eclipse.dltk.sh-7fc076e412cdc45950cb2b9a92efa9fe1d5433f4.tar.xz
org.eclipse.dltk.sh-7fc076e412cdc45950cb2b9a92efa9fe1d5433f4.zip
Bug 492758 - "Toggle Comment" keybind does not work
Override getConfiguredContentTypes to make uncomment work too. Change-Id: I06d7a5537a16b11be6d84de344577a7ab908d011 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/editor/ShellSourceViewerConfiguration.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/editor/ShellSourceViewerConfiguration.java b/plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/editor/ShellSourceViewerConfiguration.java
index 16e6368..552abce 100644
--- a/plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/editor/ShellSourceViewerConfiguration.java
+++ b/plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/editor/ShellSourceViewerConfiguration.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009-2010 Red Hat Inc. and others.
+ * Copyright (c) 2009, 2016 Red Hat Inc. 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
@@ -230,4 +230,9 @@ public class ShellSourceViewerConfiguration extends ScriptSourceViewerConfigurat
}
}
+ @Override
+ public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
+ return IShellPartitions.CONTENT_TYPES;
+ }
+
}

Back to the top