Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » clone as snychronized
clone as snychronized [message #554433] Mon, 23 August 2010 07:09 Go to next message
Sven Krause is currently offline Sven KrauseFriend
Messages: 119
Registered: July 2009
Senior Member
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
Re: clone as snychronized [message #554527 is a reply to message #554433] Mon, 23 August 2010 13:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: clone as snychronized [message #556217 is a reply to message #554527] Tue, 31 August 2010 11:28 Go to previous messageGo to next message
Sven Krause is currently offline Sven KrauseFriend
Messages: 119
Registered: July 2009
Senior Member
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
Re: clone as snychronized [message #556226 is a reply to message #556217] Tue, 31 August 2010 11:53 Go to previous message
Sven Krause is currently offline Sven KrauseFriend
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
>
Previous Topic:[CDO] How to fix inconsistent states of CDOObjects?
Next Topic:[CDO] Oracle Create Table cdo_commit_infos
Goto Forum:
  


Current Time: Thu Apr 25 20:33:22 GMT 2024

Powered by FUDForum. Page generated in 0.02817 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top