|
Re: making nodes read only [message #795350 is a reply to message #795254] |
Fri, 10 February 2012 11:19 |
Michael Golubev Messages: 383 Registered: July 2009 |
Senior Member |
|
|
Hello,
GMF-T does not support any kind of read-only-ness.
As a weak solution, you may try to remove the not allowed attributes from the property sheet by changing the
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)
in the XXXProvider class (yourmodel.edit plugin).
This change will affect all property sheets showing your model instances, if you want to have different property sheets for default EMF tree editor and GMF diagram, please search through this forum, I am pretty sure this topic had been discused here.
Please ask in the EMF forum how to maintain the "real" readonly mode, I guess that prohibiting ResourceSetListener registered as a pre-commit and throwing RollbackException on inappropriate changes may be suitable.
Regards,
Michael "Borlander" Golubev
at Montages Think Tank, Prague, Czech Republic
Montages AG, Zürich, Switzerland
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03635 seconds