看到Eclipse里有很多的快捷键,那在开发的插件中怎么添加默认的快捷键呢?
这里有一些快捷键的介绍:http://surenpi.com/?p=101
- 扩展点 org.eclipse.ui.bindings
[codesyntax lang="xml"]
<extension name="surenpi.com" point="org.eclipse.ui.bindings">
<key commandId="surenpi.com.dev.plugin.commands.refreshGRECommand"
contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="CTRL+F5">
</key>
<key commandId="surenpi.com.dev.plugin.commands.mavenInstallCommand"
contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="CTRL+F2">
</key>
</extension>
[/codesyntax]