feature 和 plugin.xml 之间的区别? [英] Difference between feature and plugin.xml?

查看:15
本文介绍了feature 和 plugin.xml 之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在eclipse插件开发中有一些基本的问题,有没有人能澄清一下下面的问题,

I have some basic questions in eclipse plugin development, can anyone give clarification of the following questions,

我们什么时候必须在插件开发中添加功能?

When should we have to add features in our plugin development ?

feature 和 plugin.xml 有什么区别?

What is the difference between feature and plugin.xml ?

问候马坦

推荐答案

这个帖子:

  • 插件是eclipse的工作单元".一个 OSGi 包,它提供类路径并可以通过扩展为 eclipse 做出贡献.

  • A plugin is the eclipse "unit of work". An OSGi bundle that supplies a classpath and can contribute to eclipse through extensions.

一个片段指向一个宿主插件,它提供的任何东西(类路径、扩展等)都被吸收"了.进入主机插件.片段也是一个更专业的 OSGi 包.

A fragment points to a host plugin, and anything it provides (classpath, extensions, etc) are "sucked" into the host plugin. A fragment is also a more specialized OSGi bundle.

特性代表插件的版本集合,并用于 eclipse 中的配置管理.它们可以手动部署,也可以通过更新管理器部署.如果你想通过更新管理器进行部署,那么你需要使用特性来代表你的插件.

A feature represents a versioned collection of plugins, and is used for configuration management in eclipse. They can be deployed manually or through the update manager. If you want to deploy through the update manager, then you need to use features to represent your plugins.

因此,如果您想通过更新管理器管理您的一个或多个插件,则需要一个功能.

So if you want to manage your plugin or plugins through the update manager, a feature is in order.

您可以在 Eclipse 帮助中找到更多信息:

You can find more in the Eclipse Help:

功能不包含任何代码.
它们只是描述了一组插件,这些插件提供了该功能的功能和有关如何更新它的信息.
功能打包在功能存档文件中,使用功能清单文件 feature.xml 进行描述.

Features do not contain any code.
They merely describe a set of plug-ins that provide the function for the feature and information about how to update it.
Features are packaged in a feature archive file and described using a feature manifest file, feature.xml.

  • 插件
  • 虽然功能是为了分发和更新产品而组织的,但插件的组织是为了促进产品团队之间产品功能的开发.开发团队决定何时将程序功能划分为单独的插件.
    插件打包在插件存档文件中,并使用插件清单文件 plugin.xml 进行描述.

    While features are organized for the purposes of distributing and updating products, plug-ins are organized to facilitate the development of the product function among the product team. The development team determines when to carve up program function into a separate plug-in.
    Plug-ins are packaged in a plug-in archive file and described using a plug-in manifest file, plugin.xml.

    这篇关于feature 和 plugin.xml 之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆