Author: scabanovich
Date: 2012-10-08 19:09:26 -0400 (Mon, 08 Oct 2012)
New Revision: 44367
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml
Log:
JBIDE-12793
https://issues.jboss.org/browse/JBIDE-12793
Keyboard shortcut is set.
Modified: trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml 2012-10-08 21:04:51 UTC (rev
44366)
+++ trunk/common/plugins/org.jboss.tools.common.ui/plugin.xml 2012-10-08 23:09:26 UTC (rev
44367)
@@ -80,11 +80,31 @@
<extension point="org.eclipse.ui.commands">
<command
name="Register As Service"
-
defaultHandler="org.jboss.tools.common.ui.wizard.service.RegisterAsServiceHandler"
- id="org.jboss.tools.common.ui.RegisterAsService">
+ description="Adds class name to META-INF/services/%serviceType% file
after service type is selected in the dialog from types extended and implemented by the
class."
+ id="org.jboss.tools.common.ui.RegisterAsService"
+ categoryId="org.eclipse.ui.category.file">
</command>
</extension>
+
+ <extension point="org.eclipse.ui.handlers">
+ <handler
class="org.jboss.tools.common.ui.wizard.service.RegisterAsServiceHandler"
+ commandId="org.jboss.tools.common.ui.RegisterAsService">
+ <activeWhen>
+ <with variable="selection">
+ <count value="1" />
+ <or>
+ <iterate>
+ <adapt type="org.eclipse.jdt.core.IType" />
+ </iterate>
+ <iterate>
+ <adapt type="org.eclipse.jdt.core.ICompilationUnit"
/>
+ </iterate>
+ </or>
+ </with>
+ </activeWhen>
+ </handler>
+ </extension>
<extension point="org.eclipse.ui.menus">
<menuContribution
@@ -112,4 +132,11 @@
</command>
</menuContribution>
</extension>
+
+ <extension
+ point="org.eclipse.ui.bindings">
+ <key sequence="M1+M2+F10"
+ commandId="org.jboss.tools.common.ui.RegisterAsService"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
+ </extension>
</plugin>