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

5 java eclipse eclipse-plugin

从官方的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>
Run Code Online (Sandbox Code Playgroud)

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

Bor*_*ris 8

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