有人有 Eclipse GMF 的经验吗?

发布于 2024-07-15 06:47:01 字数 242 浏览 5 评论 0原文

我刚刚开始使用 Eclipse GMF

  • 有人用过这个框架吗?
  • 您在使用过程中有什么好的或不好的经历吗?
  • 您可以建议任何图形建模的替代方案吗?
  • 编辑:有哪些好的例子可用?

I've just started to play around with Eclipse GMF.

  • Has anyone used the framework?
  • Any good or bad experiences you had using it?
  • Any alternatives for graphical modeling you could suggest?
  • EDIT: What good examples are available?

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

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

发布评论

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

评论(3

愛放△進行李 2024-07-22 06:47:01

有人用过这个框架吗?是的,我现在正在使用它。 它可以工作,但通常需要对图形进行大量编码。 我目前正在努力利用构建在 GMF 之上的 IBM RSA/RSM UML editparts/figures/nodes 等。

您使用它有什么好的或坏的经历吗?回顾我最初对 GMF/EMF/GEF 等的深入研究,我可以肯定地说,研究这些例子。 您必须从示例而不是文档中了解一些重要的模式。 我还建议一本新书(Eclipse 建模项目:领域特定语言 (DSL)< /a>) 专门用于 Eclipse 中的 GMF 建模。 我翻阅了它,它似乎缺少一些更基本概念的手册。 这本书之所以好,是因为它重点关注通过将 UML/模型限制在特定领域并提供只允许创建有效模型的工具来使 UML/模型变得有用的关键。 网上的文档并不多,API 也只能告诉你这么多。 留意因调用 setBounds() 或子级上的其他设置方法而导致的重绘/绘制循环,它会导致 Eclipse 实例崩溃,不好玩。 哦,是的,API 在 Eclipse 帮助文档版本之间分开,或者根本不包含。

您可以建议图形建模的任何替代方案吗?
考虑使用自定义图像和图标而不是完整形状生成的 UML 配置文件。 大约需要 2 个小时才能在 UML 图形对象和 UML 配置文件之上构建一个相当好的图像/图标编辑器。 IBM RSM 工具 UML Profile 工具项目可以快速完成此任务。 您可以使用受约束的 UML 配置文件(通过 Eclipse 插件或 OCL)做很多事情。 进入GMF土地的努力增加了一个数量级以上,从1到10小时没问题。

考虑一下纯 DSL(领域特定语言)工具。 谷歌将提供一个很好的列表。 据我所知,使用 GMF 的主要原因是 eclipse 集成和利用现有的 ecore/UML 模型,这就是我使用 GMF 的原因。

问问自己我是否需要简单的模型,或者我是否需要一个工具来创建该模型的实例。 如果只有 1-5 名专家用户,则可能不需要时尚的工具。

Has anyone used the framework? Yes, I am using it right now. It works, but it is typically quite a bit of coding for the graphical figures. I currently am struggling to leverage the IBM RSA/RSM UML editparts/figures/nodes etc built on top of GMF.

Any good or bad experiences you made using it? Looking back on my initial dives into GMF/EMF/GEF etc I can say for certain, study the examples. There are important patterns that you have to pick-up on from the examples and not the documentation. I would also suggest a new book (Eclipse Modeling Project: A Domain-Specific Language (DSL)) specific for GMF Modeling in Eclipse. I paged through it and it seemed to be the missing manual to some of the more basic concepts. Why the book is good is that is focuses on the key to making UML/Models useful through constraining it to a specific domain and providing a tool that only allows for valid models to be created. There is not a lot of documentation online and the API only tells you so much. WATCH OUT for repaint/paint loops caused by calling setBounds() or other set methods on children, it crashes the eclipse instance, not fun. Oh yes and the APIs are split between eclipse help documentation versions or not included at all.

Any alternatives for graphical modeling you could suggest?
Consider UML profiles with custom images and icons rather than full shape generation. It takes about 2 hours to put together a pretty good Image/Icon editor building on top of UML graphical objects and UML profiles. The IBM RSM tool UML Profile tooling project does this quickly. There is a lot you can do with constrained UML profiles (via Eclipse plug-ins or OCL). Entering GMF land is more than a order of magnitude effort increase, from 1 to 10 hours no problem.

Consider pure DSL (Domain specific language) tools out there. Google will provide a good list. From what I have seen the main reason to use GMF is eclipse integration and leveraging existing ecore/UML models, this is why I use GMF.

Ask yourself do I need model which is easy, or do I need a tool for creating instances of this model. If there are only 1-5 expert users there may not be a need for a sleek tool.

上课铃就是安魂曲 2024-07-22 06:47:01

TOPCASED 项目利用了 GMF。 它为 UML 和其他图表提供了各种图形编辑器。

The TOPCASED project makes use of GMF. It provides various graphical editors for UML and other diagrams.

扛起拖把扫天下 2024-07-22 06:47:01

使用 GMF,大部分编辑器代码都会为您生成,但主要的复杂性来自于必须修改它。

作为最新的替代方案,您可以尝试 Graphiti喷雾这是一个比较GMF 和 Graphiti 之间的另一个

With GMF, most of the editor code is generated for you, but the main complexity arises from having to modify it.

As most recent alternatives, you might try Graphiti and Spray. Here is a comparison and another between GMF and Graphiti.

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