使用户能够在 RCP 中创建自定义表单

发布于 2024-11-13 23:25:37 字数 924 浏览 5 评论 0原文

我有一个 Eclipse RCP 项目,我需要允许用户为我们的信息创建自定义视图。我基本上看到两个选择。

  1. 嵌入 VEP 或一些其他可视化 GUI 构建器。它需要: 足够容易使用;有一些钩子来编译生成的文件并使它们可供我的应用程序使用;可本地化;并且许可证必须允许此类使用。哪些 GUI 构建器满足这些要求?

  2. 从人类可写格式的文本文件(例如 XML,但不一定)动态生成 GUI。有一些库可以执行此操作:CookSWTXSWTJellySWT, SWTML。然而,目前它们似乎都没有得到积极开发,其中一些甚至不允许事件处理程序(尽管这可以解决)。有没有我错过的项目?其中哪一个可以与当前的 SWT 版本一起使用?

选项 2 似乎更容易工作并且出现错误的可能性更小。

最后,还有比这两种更好的方法吗?

I have an Eclipse RCP project, and I need to enable users to create custom views for our information. I see basically two options.

  1. Embed VEP or some other visual GUI builder. It would need to be: easy enough to use; have some hooks to compile generated files and make them available to my application; localizable; and the license must permit such use. Which GUI builders satisfy these requirements?

  2. Generate GUI on the fly from text files in a human-writable format (e.g. XML, but not necessarily). There are some libraries which do this: CookSWT, XSWT, JellySWT, SWTML. However, none of them seem to be actively developed at the moment, and some of them don't even allow event handlers (though this can be worked around). Are there any projects I've missed? Which of them will work with the current SWT versions?

Option 2 seems both easier to get working and have less potential for bugs.

Finally, is there some better way than these 2?

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

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

发布评论

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

评论(1

与之呼应 2024-11-20 23:25:37

你看过redView吗?它带有一个 GUI 设计器。

Have you looked at redView? It comes with a GUI-designer.

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