java - Eclipse插件开发: How to avoid deprecated ActionSet?

标签 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>

但不幸的是,我收到了一些已弃用的警告。特别是扩展点和 Action 集。我找不到任何有关如何避免这种情况的信息。有什么提示吗?

最佳答案

问题是整个 Action 框架都被弃用了。如今,人们改用命令。您可以找到有关命令的更多信息,例如 eclipse-tips.comvogella.com .

关于java - Eclipse插件开发: How to avoid deprecated ActionSet?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8538288/

相关文章:

Eclipse Ganymede HTML 编辑器在编辑属性时非常慢

eclipse - 最大化 Eclipse 快捷方式中的代码选项卡

css - 用于设计网页的eclipse插件

java - 尝试通过 WALA 检测源代码时出现异常 : java. lang.ClassFormatError:StackMapTable 格式错误:属性大小错误

java - 将常量分配给对象

java - 组合和聚合关系 UML 存在问题

java - Sonarqube 使用 Cobertura 代替 Jacoco

java - 在 Android 中使用 ProgressbarDialog 下载文件

java - 卡在 spring 教程中

java - "Run in background"按钮未显示在 ProgressMonitorDialog 中