gpt4 book ai didi

c++ - 如何以编程方式在 Eclipse 中获取 "available software sites"

转载 作者:行者123 更新时间:2023-11-30 04:03:38 27 4
gpt4 key购买 nike

我想检查在我的 eclipse 中安装了哪些“可用软件站点”。 (例如,检查我的 eclipse 上是否安装了 CDT)通过 QT 通过 C++。

我知道如何从 eclipse 中做到这一点(帮助 -> 安装新软件 -> 可用软件站点链接 - http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-p2-siteprefs.htm)。但我不知道如何从 C++ 代码中做到这一点......有什么想法吗?

最佳答案

看起来这个数据位于 Eclipse 安装中 p2 目录的子目录中。

子目录 org.eclipse.equinox.p2.engine/profileRegistry/xxx.profile/.data/.settings 包含文件 org.eclipse.equinox.p2.artifact.repository .prefsorg.eclipse.equinox.p2.metadata.repository.prefs 这两个似乎都有可用的更新站点信息。

xxx.prefs 文件是 Java“属性”文件,必须由理解该格式的东西读取,包括特殊字符转义和 Unicode 编码。

关于c++ - 如何以编程方式在 Eclipse 中获取 "available software sites",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24311143/

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