|
Re: RCP how to make TreeViewer non editable [message #1783952 is a reply to message #1783803] |
Tue, 20 March 2018 16:32 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
Is this for an exercise? I don't see the practical goal. How is this actually useful?
In the end, the model is modified by commands created by the editing domain, mostly delegating to the item providers for creation. Some commands are used by the properties view and some are used by the tree structure, but in the end, the same command might be used in both places, so selectively disabling a command used to modify the tree structure verses a command used to modify properties in the properties view isn't entirely trivial; it depends on your model and on which properties you support. Likely command that modify containment/container features are used for the tree structure; those that modify attributes and cross references are used in the properties view, so perhaps that will suffice.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03291 seconds