如何在代码中提交编辑范围

问题描述:

我有一个活动,允许用户从工具栏上进行其他活动.在已删除活动的属性设置器中,我需要根据已删除活动中的值进行一些工作以同步工作流.

I have an activity that allows a user to drop on other activities from the toolbar. In the property setter of the dropped activity I need to do some work to synchronise the workflow base on values in the dropped activity.

删除活动后,将在模型树管理器上通过更改来创建编辑范围.我所做的任何更改都只会添加到编辑范围的更改中,因此当其他活动尝试不进行同步时,不会提交任何内容.

When the activity is dropped an editing scope is created with a change on the model tree manager. Any changes I do are just added to the changes of the editing scope so when other activities try and synchronise nothing has been commited.

我可以通过某种方式提交代码更改吗?

Is there some way I can commit the changes in code?

在提交变更后,还有其他我可以处理的事件吗?

Is there another event I can handle that runs after changes have been comitted?

我是否应该使用当前值,然后将其同步到模型项?

Should I rather work with current values and then sync them up to the model item?

感谢您的咨询.

我正在阅读它,但我不太理解.也许我要喝咖啡.
蒂姆
I'm reading it, but I am not quite understanding it. Maybe I need a coffee.
Tim