Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2012-04-04 20:21:50 -0400
committerAlexander Kurtakov2012-04-04 20:21:50 -0400
commit3813e8a75f3f878ac9543a162505a3636b7b483d (patch)
tree495bed20122fc805bd8e8ac0daf8e4d8c94cad84 /changelog/org.eclipse.linuxtools.changelog.core/plugin.xml
parent174e5a0011ed898ca6b4dfa0542d429498f4787a (diff)
downloadorg.eclipse.linuxtools-3813e8a75f3f878ac9543a162505a3636b7b483d.tar.gz
org.eclipse.linuxtools-3813e8a75f3f878ac9543a162505a3636b7b483d.tar.xz
org.eclipse.linuxtools-3813e8a75f3f878ac9543a162505a3636b7b483d.zip
Make the Changelog format proper command.
Define the handler as proper command and hook the menu via the plugin.xml instead of code.
Diffstat (limited to 'changelog/org.eclipse.linuxtools.changelog.core/plugin.xml')
-rw-r--r--changelog/org.eclipse.linuxtools.changelog.core/plugin.xml15
1 files changed, 14 insertions, 1 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/plugin.xml b/changelog/org.eclipse.linuxtools.changelog.core/plugin.xml
index 2eda7897d2..09df3422d3 100644
--- a/changelog/org.eclipse.linuxtools.changelog.core/plugin.xml
+++ b/changelog/org.eclipse.linuxtools.changelog.core/plugin.xml
@@ -202,5 +202,18 @@
name="Changelog Detector">
</hyperlinkDetector>
</extension>
-
+<extension point="org.eclipse.ui.menus">
+ <menuContribution locationURI="popup:#TextEditorContext?endof=group.edit">
+ <command commandId="org.eclipse.linuxtools.changelog.core.formatChangeLog">
+ <visibleWhen
+ checkEnabled="false">
+ <and>
+ <with variable="activeEditorId">
+ <equals value="org.eclipse.linuxtools.changelog.core.editor6"/>
+ </with>
+ </and>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+</extension>
</plugin>

Back to the top