gpt4 book ai didi

java - SWT 4.2 中缺少 Platform.getBundle 方法

转载 作者:行者123 更新时间:2023-12-01 14:43:30 26 4
gpt4 key购买 nike

我正在尝试使用显示的代码片段 here但是类 org.eclipse.core.runtime.Platform 的方法 getBundle() 似乎在 SWT 4.2 中没有被拒绝。他们移动/删除了它吗?

最佳答案

Platform 类不是 SWT 的一部分,它是 Eclipse Core Runtime 的一部分。您可能必须将 org.eclipse.core.runtime 添加到插件/片段的依赖项中。

希望这有帮助

关于java - SWT 4.2 中缺少 Platform.getBundle 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15699063/

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