gpt4 book ai didi

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

转载 作者:搜寻专家 更新时间:2023-10-31 19:41:10 27 4
gpt4 key购买 nike

从官方 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com