编程生活

   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  113 随笔 :: 0 文章 :: 18 评论 :: 0 Trackbacks
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
         
point="org.eclipse.ui.popupMenus">
      
<objectContribution
            
id="ContributionParentUnitPopup"
            objectClass
="org.eclipse.jdt.core.ICompilationUnit">
         
<action
               
class="rmp.rv4.tools.metadata.jdt.meta.NewDTOAndMetadataAction"
               enablesFor
="1"
               id
="rmp.rv4.tools.metadata.jdt.meta.GenerateQueryDataInterfaceAction"
               label
="Generate Metadata by SQL"
               menubarPath
="org.eclipse.jdt.ui.source.menu/generateGroup">
         
</action>
      
</objectContribution>
      
<objectContribution
            
id="ContributionResourceUnitPopup"
            objectClass
="org.eclipse.jdt.core.ICompilationUnit">
         
<action
               
class="rmp.rv4.tools.metadata.jdt.dict.GenerateDataDictAction"
               enablesFor
="1"
               id
="rmp.rv4.tools.metadata.jdt.dict.GenerateDataDictAction"
               label
="Generate DataDict by PDM.."
               menubarPath
="org.eclipse.jdt.ui.source.menu/generateGroup">
         
</action>
         
<enablement>
             
<test
                
forcePluginActivation="true"
                property
="rmp.rv4.tools.metadata.jdt.resourceProperty.isEntity"
                value
="true"/>
         
</enablement>
      
      
</objectContribution>
   
</extension>
<extension
      
point="org.eclipse.ui.preferencePages">
   
<page
         
category="org.eclipse.jdt.ui.preferences.JavaBasePreferencePage"
         class
="rmp.rv4.tools.metadata.jdt.PreferencePage"
         id
="rmp.rv4.tools.metadata"
         name
="MetaTools">
   
</page>
</extension>
<extension
      
point="org.eclipse.core.expressions.propertyTesters">
   
<propertyTester
         
class="rmp.rv4.tools.metadata.core.ast.entity.EntityClassTester"
         id
="rmp.rv4.tools.metadata.jdt.ResourceTester"
         namespace
="rmp.rv4.tools.metadata.jdt.resourceProperty"
         properties
="isEntity"
         type
="org.eclipse.jdt.core.ICompilationUnit">
   
</propertyTester>
</extension>
</plugin>
posted on 2008-01-21 14:17 wilesun 阅读(1356) 评论(1)  编辑  收藏

评论

# re: RCP使用org.eclipse.core.expressions.propertyTesters扩展点控制弹出菜单的例子 2008-01-21 14:19 wilesun
eclipse 3.2以后enablement的test好象被取消似的,在编辑器中无法创建.  回复  更多评论
  


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


网站导航: