posts - 1,  comments - 25,  trackbacks - 0
<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的相关

只有注册用户登录后才能发表评论。


网站导航:
 
<2024年11月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

常用链接

留言簿(3)

随笔档案

文章分类

文章档案

相册

搜索

  •  

最新评论