0

I'm using EMF to let the user create a model using a generated editor. In the editor properties, in one of the properties of the model I want the user to click on "..." button instead of using string value. after he clicks the "..." button i will open a dialog that I created for him to pick from a list. How do I change the property to show "..." instead of just being a string. Is it done in the ecore file?

Ido.

4

1 回答 1

0

在 EMF 中,您可以在 .genmodel、编辑和/或编辑器“plugin.properties”文件中或(对于复杂和不寻常的事情)通过更改生成的代码来更改生成的模型编辑器的“外观”。

如果您编辑生成的代码,请小心删除“@generated”标记……否则您的更改将在您下次从模型中重新生成代码时消失!

在这种情况下,我认为您可能只需要更改一些插件属性字符串。

于 2009-08-05T08:00:05.390 回答