开发者

How to make properties read-only basing on runtime information in EEF wizards

开发者 https://www.devze.com 2023-04-10 20:31 出处:网络
I\'m using EEF to create property editors for an EMF model I\'m working on. The m开发者_如何学Codel is composed of commands, and each command can be in \"EDIT\" mode or in \"RUNNING\" mode. This infor

I'm using EEF to create property editors for an EMF model I'm working on. The m开发者_如何学Codel is composed of commands, and each command can be in "EDIT" mode or in "RUNNING" mode. This information is available as derived attribute of each command, and it is controlled by my application logic.

I want to let the user only edit the commands in "EDIT" mode, while I want to make read-only those in "RUNNING" mode... how can I do that?


I found out a solution: I need to change the generated code so to check the runtime information and make read-only sensible information.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号