Eclipse产品:导出具有轻微变化的产品的多个版本 [英] Eclipse product: Export multiple versions of a product which has slight variations

查看:169
本文介绍了Eclipse产品:导出具有轻微变化的产品的多个版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个相对开放的问题,所以我不会指出正确的方向。



我有一个产品它使用Eclipse工作台来允许用户使用自定义语言进行编程。对于本产品,我还将为要导出的较轻版本提供一些小的UI和内部更改。例如,产品的完整版本包含一些额外的视图和菜单,并且行为略有不同(如创建新文件时),因为ligher版本不包含大量视图,并且有几个不同的更简化的视图。



我不想制作我的工作区的副本,然后有两个单独的工作空间,一个完整版本和一个较轻的版本,因为这将很难维持在长期特别是当与两者相关的代码发生变化时尤其如此。我想要能够从共同的工作空间导出产品的全部和轻型版本。



我该怎么做?或者在哪里可以开始查找?



该产品是一组功能,并使用Eclipse工作台作为其基础应用程序。


$ b $我想澄清一点,我问我如何隐藏全部或轻型版本的视图,例如。我知道在C#中,我们有像#if这样的选项。我看到很多问题涉及到两个不同版本的相同的代码,但没有关于他们如何可以有两个不同版本的相同代码。

解决方案

您希望 Eclipse RCP书,它完全解释了如何做到这一点。为了做到这一点,您需要对Eclipse插件,功能,产品,片段等几个方面的理解有一个很好的了解。



本质上,您可以将应用程序分割成多个插件(例如有一个基本插件,然后另一个插件提供额外的功能)。然后,您将这些插件组织成功能,这些功能是要安装的功能的集合。 Eclipse中产品的概念与品牌有关,所以您可能会有两种产品,一种是纯粹的,一种完整的。该产品可能有一个品牌插件(产品实际上被声明)。



这应该让你开始。


This is a relatively open ended question so I wouldn't just mind being pointed in the right direction.

I have a product that uses the Eclipse workbench to allow users to program in a custom language. For this product, I will also have some minor UI and internal changes for a lighter version to be exported. For example, a full version of the product contains some extra views and menus, and behaves slightly differently (like when creating a new file) where as the ligher version does not contain a lot of view and has a couple of different more simplified ones.

I do not want to make a copy of my workspace and then have 2 separate workspaces for a full version and a lighter version as that will be difficult to maintain in the long run especially when there are changes in code relevant to both. I want to be able to export both, full and light versions of a product from a common workspace.

How can I go about this? Or where can I start looking?

The product is a collection of features and uses the Eclipse workbench as its base application.

I would like to clarify that I am asking how I could hide a view for the full or light version, as an example. I know in C#, we have options like #if. I have seen a lot of questions which refer to having 2 different versions of the same code, but nothing about how they could have 2 different versions of the same code.

解决方案

You want the Eclipse RCP book it really fully explains how to do this. And to do it you need a solid understanding of the concepts of Eclipse plugin, feature, product, fragment and a few other things.

Essentially you can segment your application in to multiple plugins (have a base plugin for example, and then another that provides additional functionality). Then you organize those plugins into features that are the collection of the functionality to be installed. The notion of a "product" in Eclipse has to do with the branding, so you would probably have two products, a lite and a full one. The products could have a branding plugin (where the product is actually declared).

This should get you started.

这篇关于Eclipse产品:导出具有轻微变化的产品的多个版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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