aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamilo Bernal2013-07-17 18:35:32 (EDT)
committerJeff Johnston2013-07-17 18:58:53 (EDT)
commit122cb6c12aeadc6793da9e613fbc97d7cc850593 (patch)
tree8f3a9de1afd385973475f0f5c261c6674c27e0b2
parent697b418ffd5e5144f7ab4210fb9dbc6457243945 (diff)
downloadorg.eclipse.linuxtools-122cb6c12aeadc6793da9e613fbc97d7cc850593.zip
org.eclipse.linuxtools-122cb6c12aeadc6793da9e613fbc97d7cc850593.tar.gz
org.eclipse.linuxtools-122cb6c12aeadc6793da9e613fbc97d7cc850593.tar.bz2
Systemtap: Make toggle comment command visible under 'Keys' preferencesrefs/changes/36/14636/3
Change-Id: Ie78e11997ea6de1a29df75002ba8d76eb83d61fb Reviewed-on: https://git.eclipse.org/r/14636 Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> IP-Clean: Jeff Johnston <jjohnstn@redhat.com> Tested-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties6
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml18
2 files changed, 21 insertions, 3 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties
index 25ed7d1..d010b42 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.properties
@@ -79,4 +79,8 @@ command.runChart.name=Run w/C&hart
command.runChart.desc=Run the Script w/Chart
command.toggleComment.name=Toggle Comment
command.toggleComment.desc=Toggle Single Line SystemTap Comment
-command.toggleComment.mne=Tog&gle Comment \ No newline at end of file
+command.toggleComment.mne=Tog&gle Comment
+
+editor.context.name=SystemTap Editor
+editor.context.desc=Editor for SystemTap Scripts
+editor.category.source.name=Source \ No newline at end of file
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml
index 6264a91..85779eb 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.ide/plugin.xml
@@ -194,11 +194,16 @@
name="%action.run.name">
</command>
<command
+ categoryId="org.eclipse.linuxtools.systemtap.ui.ide.category.source"
defaultHandler="org.eclipse.linuxtools.internal.systemtap.ui.ide.actions.ToggleCommentHandler"
description="%command.toggleComment.desc"
id="org.eclipse.linuxtools.systemtap.ui.ide.toggleComment"
name="%command.toggleComment.name">
</command>
+ <category
+ id="org.eclipse.linuxtools.systemtap.ui.ide.category.source"
+ name="%editor.category.source.name">
+ </category>
</extension>
<extension
point="org.eclipse.ui.actionSets">
@@ -357,9 +362,18 @@
point="org.eclipse.ui.bindings">
<key
commandId="org.eclipse.linuxtools.systemtap.ui.ide.toggleComment"
- contextId="org.eclipse.ui.textEditorScope"
+ contextId="org.eclipse.linuxtools.systemtap.ui.ide.context"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="CTRL+/">
+ sequence="M1+/">
</key>
</extension>
+ <extension
+ point="org.eclipse.ui.contexts">
+ <context
+ description="%editor.context.desc"
+ id="org.eclipse.linuxtools.systemtap.ui.ide.context"
+ name="%editor.context.name"
+ parentId="org.eclipse.ui.textEditorScope">
+ </context>
+ </extension>
</plugin>