I am creating an inspector with many properties. I wish to include an Accept Button for the user to commit the changes manually. I looked in the samples like DebugInspector, but I am unable to follow the code as it happens to contain lot of lines. Is there any easy method to implement it?
The Data Inspector updates data properties immediately as the user finishes changing each property. If you want to have the user see and modify multiple property values without actually changing the node or link data object until the user executes some command, you will need to change the inspector to work on a copy of the Part.data object. Then if and when the user decides to commit any and all changes, a command would start a transaction, make all of the changes to the real Part’s data object by copying the property values over, and then commit the transaction.