简体   繁体   English

Eclipse插件:具有一些简单元素的文件类型的编辑器

[英]Eclipse Plugin: Editor for a file type with some simple elements

I want to create a plugin for Eclipse that allows me to edit a file in a graphical way. 我想为Eclipse创建一个插件,允许我以图形方式编辑文件。 Parsing and saving the file is no problem, but I can't seem to figure out the simplest way of designing an editor in Eclipse. 解析和保存文件没问题,但是我似乎无法弄清楚在Eclipse中设计编辑器的最简单方法。 I guess this must be super easy, but I can only find complex examples when googling, and no simple solution for quickly sticking together a GUI as an editor (I don't want to define an entire EMF model etc. for this simple task). 我想这一定是超级容易的,但是在谷歌搜索时我只能找到复杂的示例,并且没有简单的解决方案可以将GUI快速地组合在一起作为编辑器(我不想为这个简单的任务定义整个EMF模型等) 。

The editor should only have a few simple lists and add and delete button to edit these lists. 编辑器应该只有几个简单的列表,并且添加和删除按钮才能编辑这些列表。 In should open when I double click the file with the appropriate file ending. 当我双击以适当的文件结尾的文件时,应打开。

Questions: 问题:

In RCP4 required for this or just a normal editor plugin? 在RCP4中需要此功能还是仅需要普通的编辑器插件?

In started of with the normal editor plugin generated by the Wizard that provides a XMLEditor. 首先从提供XMLEditor的向导生成的普通编辑器插件开始。 What is the recommend way for adding these simple model editing elements (lists)? 添加这些简单的模型编辑元素(列表)的推荐方法是什么?

I'm working on a similar editor using Window Builder, Forms, and EMF JFace data bindings. 我正在使用Window Builder,Forms和EMF JFace数据绑定开发类似的编辑器。

It is not that complex, but I wouldn't call it simple either. 它并不复杂,但是我也不会简单。 Or, put it differently - it is all simple once you know how it works, but you'll have to invest some time in gaining that knowledge. 或者,换种说法-一旦知道了它的工作原理,一切就很简单,但是您必须花费一些时间来获取这些知识。

Some links which should help you get started: 一些可以帮助您入门的链接:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM