|
|
|
Re: clone as snychronized [message #556226 is a reply to message #556217] |
Tue, 31 August 2010 11:53 |
Sven Krause Messages: 119 Registered: July 2009 |
Senior Member |
|
|
Ok. Got it (at least for workspace command stack :-):
TransactionalEditingDomain editingDomain =
TransactionUtil.getEditingDomain(master);
IWorkspaceCommandStack commandStack = (IWorkspaceCommandStack)
editingDomain.getCommandStack();
commandStack.getOperationHistory().addOperationHistoryListen er(new
IOperationHistoryListener() {
@Override
public void historyNotification(OperationHistoryEvent event) {
if(event.getEventType() ==
OperationHistoryEvent.ABOUT_TO_UNDO) {
...
}
}
});
Sven
Am 31.08.2010 13:28, schrieb Sven Krause:
> Hi Ed,
>
> I've implemented such a change replicator, but have the difficulty to
> determine, if the change is due to a change or a command rollback. How
> can I detect such state inside the change notification?
>
> Sven
>
> Am 23.08.2010 15:30, schrieb Ed Merks:
>> Sven,
>>
>> I don't know of such a thing. A ChangeRecorder might help.
>>
>>
>> Sven Krause wrote:
>>> Hi there,
>>>
>>> is the an existing implementation for creating an EObject deep copy
>>> and reflecting changes at the source mirrored to the copy instance? I
>>> know the EcoreUtils copier, but it does not installes the synch
>>> capabilities...
>>>
>>> Thanks in Advance,
>>> Sven
>
|
|
|
Powered by
FUDForum. Page generated in 0.02817 seconds