|Best way to combine two attribute changes into a high-level atomic one [message #1281432]
||Mon, 31 March 2014 22:14
| Leonid Ripeynih
Registered: February 2012
We're trying to provider custom merge UI for our model. We have a visual form model, with grid layout, where components have a layout position of x and y.
During merge, we want this changes to x and y to be atomic, because, accepting only one of them can lead to a broken form. (component overlap, e.t.c)
For now, we have implemented a post-processor, which makes one change require each other, so when one is merged, the other is merge automatically, and it works fine.
Now i wander, how to combine this change into an atomic one (say, 'Layout Position Changed')? I've read developer's guide, and it said that we should create a refinement change. But there is not much after it. I've took a brief look into a UML2 support, and found out that it has it's extension model to Compare model.
So, the steps looks like that to me:
1. Create an extension model, create a 'PositionChange', extend it from Diff?
2. Create an Extension Factory, here create a position changes, refined by x,y changes of corresponding position?
3. Create an Accessor Factory to correctly display that PositionChange in the UI?
I've tried it, and what confuses me now, is that x,y changes are still displayed, even when a PositionChange is correctly refined by them, and have the same parent.
Should I take any additional steps to hide them from the structure viewer, and show only the composite change?
Thanks in advance.
Powered by FUDForum
. Page generated in 0.02661 seconds