<extension
point="org.eclipse.core.expressions.definitions">
<definition
id="com.ebay.tools.vjet2.ui.inDltk">
<with
variable="activePartId">
<or>
<equals value="org.eclipse.jdt.ui.PackageExplorer"/>
<equals value="org.eclipse.jdt.ui.ClassFileEditor"/>
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.ebay.tools.vjet2.internal.ui.actions.VjoOpenTypeHandler"
commandId="org.eclipse.jdt.ui.navigate.open.type">
<activeWhen>
<reference
definitionId="com.ebay.tools.vjet2.ui.inDltk">
</reference>
</activeWhen>
</handler>
</extension>
<extension point="org.eclipse.ui.actionSets">
<actionSet label="%VjetActionSet.label" description="%VjetActionSet.description" visible="false" id="com.ebay.tools.vjet2.ui.VjetActionSet">
<action class="com.ebay.tools.vjet2.ui.actions.VjoOpenTypeAction" definitionId="org.eclipse.jdt.ui.navigate.open.type" icon="platform:/plugin/org.eclipse.dltk.ui/icons/full/etool16/opentype.gif" id="com.ebay.tools.vjet2.ui.openType" label="%OpenTypeAction.label" menubarPath="navigate/open.ext2" tooltip="%OpenTypeAction.tooltip">
</action>
</actionSet>
Execute sequence: Action will be actived -->Find definediionID:org.eclipse.jdt.ui.navigate.open.type at a handler, -->handler will be actived when definited satisfied
It's very useful when cut event when override old version codes or 3rd plugin.
posted on 2009-11-09 15:42
Daniel 阅读(552)
评论(0) 编辑 收藏 所属分类:
Eclipse的相关