繁体   English   中英

Eclipse插件开发:如何避免弃用ActionSet?

[英]Eclipse plugin development: How to avoid deprecated ActionSet?

从官方的Eclipse插件开发教程中,我复制了以下代码,以在我的plugin.xml中定义一个新按钮

<extension point = "org.eclipse.ui.actionSets">
        <actionSet
            id="org.eclipse.examples.helloworld.HelloWorldActionSet"
            label="Hello World"
        visible="true"
        description="The action set for the Eclipse Hello World example">
        <menu
        id="org.eclipse.examples.helloworld.HelloWorldMenu"
        label="Samples">
        <separator name="samples"/>
        </menu>
        <action id="org.eclipse.examples.helloworld.actions.HelloWorldAction"
        menubarPath="org.eclipse.examples.helloworld.HelloWorldMenu/samples"
        toolbarPath="Normal"            
        label="Hello World"
        tooltip="Press to see a message"
        icon="icons/helloworld.gif"
        class="org.eclipse.examples.helloworld.HelloWorldAction"/>
        </actionSet>
    </extension>

但不幸的是,我收到了一些不赞成的警告。 Especiall用于扩展点和动作集。 我找不到任何有关如何避免这种情况的信息。 任何提示?

问题是整个行动框架已被弃用。 如今,人们使用命令。 你可以找到例如命令的详细信息eclipse-tips.comvogella.com

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM