zoukankan      html  css  js  c++  java
  • rcp 右键菜单添加eclipse自带的新建文件和新建文件夹菜单

    plugin.xml中配置如下

     <extension
             point="org.eclipse.ui.navigator.navigatorContent">
    <commonWizard
                menuGroupId="group.5.new"
                type="new"
                wizardId="org.eclipse.ui.wizards.new.file">
             <enablement>
                <and>
                   <adapt
                         type="org.eclipse.core.resources.IContainer">
                   </adapt>
                   <not>
                      <adapt
                            type="org.eclipse.core.resources.IWorkspaceRoot">
                      </adapt>
                   </not>
                </and></enablement>
          </commonWizard>
          <commonWizard
                menuGroupId="group.5.new"
                type="new"
                wizardId="org.eclipse.ui.wizards.new.folder">
             <enablement>
                <and>
                   <adapt
                         type="org.eclipse.core.resources.IContainer">
                   </adapt>
                   <not>
                      <adapt
                            type="org.eclipse.core.resources.IWorkspaceRoot">
                      </adapt>
                   </not>
                </and></enablement>
          </commonWizard>
     </extension>
  • 相关阅读:
    Mysql高级第一天(laojia)
    Mysql初级第三天(wangyun)
    Mysql初级第二天(wangyun)
    Mysql初级第一天(wangyun)
    Spring的源码解析
    JAVA8新特性
    java8
    JMM内存模型
    JAVA并发工具类
    mybatis
  • 原文地址:https://www.cnblogs.com/yaolei0422/p/9020183.html
Copyright © 2011-2022 走看看