Buckminster RCP简单项目实现

发布于 2024-08-21 12:23:59 字数 151 浏览 1 评论 0原文

观看网络研讨会、浏览 BuckyBook PDF 并遵循 Eclipse RCP 构建教程后,我仍然不知道如何将 CVS 中的简单 RCP 插件项目具体化到 Eclipse 工作区中。

有没有人有一个带有 CQUERY 和 RMAP 文件的示例,用于一个简单的项目工作区?

After watching the webinar, skimming over the BuckyBook PDF, and following the Eclipse RCP build tutorial, I still don't know how to materialize a simple RCP plug-in project from CVS into an eclipse workspace.

Does anyone have an example with a CQUERY and an RMAP file, for a simple one project workspace?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

謸气贵蔟 2024-08-28 12:23:59

其实很简单。

下面是一个 CSPEC 示例:

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="example-site.rmap">
    <cq:rootRequest name="example-site" componentType="eclipse.feature"/>
</cq:componentQuery>

请注意,根请求名称属性指向一个组件。如果您有一个 RCP 应用程序,其中有一个主捆绑包(例如您的应用程序的启动点),那么您将使用上面的 name 属性指向该组件。然后,此 CSPEC 将使用下面的 RMAP、使用搜索路径、提供程序等下载所有依赖组件。RMAP

<searchPath name="default">
    <provider 
    readerType="cvs" 
    componentTypes="osgi.bundle,eclipse.feature" 
    source="true" 
    mutable="true">
        <uri format=":pserver:[email protected]:/opt/data/cvsroot,{0}/">
            <bc:propertyRef key="buckminster.component" />
        </uri>
    </provider>
</searchPath>

<searchPath name="galileo">
    <provider readerType="eclipse.import" componentTypes="osgi.bundle,eclipse.feature"
        mutable="false" source="false">
        <uri format="http://download.eclipse.org/releases/galileo?importType=binary"/>
    </provider>
</searchPath>   

<locator searchPathRef="default" pattern="^example\-.*" />
<locator searchPathRef="galileo" failOnError="false" />

Its actually easy.

Here is a sample CSPEC:

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="example-site.rmap">
    <cq:rootRequest name="example-site" componentType="eclipse.feature"/>
</cq:componentQuery>

Note the root request name property points to a component. If you have an RCP app which has a main bundle (say one that is the launching point to your app), then you would point to this component using the name property above. This CSPEC will then download all dependent components using the RMAP below, using search paths, providers etc.

The RMAP:

<searchPath name="default">
    <provider 
    readerType="cvs" 
    componentTypes="osgi.bundle,eclipse.feature" 
    source="true" 
    mutable="true">
        <uri format=":pserver:[email protected]:/opt/data/cvsroot,{0}/">
            <bc:propertyRef key="buckminster.component" />
        </uri>
    </provider>
</searchPath>

<searchPath name="galileo">
    <provider readerType="eclipse.import" componentTypes="osgi.bundle,eclipse.feature"
        mutable="false" source="false">
        <uri format="http://download.eclipse.org/releases/galileo?importType=binary"/>
    </provider>
</searchPath>   

<locator searchPathRef="default" pattern="^example\-.*" />
<locator searchPathRef="galileo" failOnError="false" />

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文