Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [cdo] Using RecordingCommands and CDO
[cdo] Using RecordingCommands and CDO [message #426469] Wed, 07 January 2009 14:23 Go to next message
Anders Forsell is currently offline Anders ForsellFriend
Messages: 127
Registered: July 2009
Senior Member
I have heard that using EMF transactions and CDO can cause some
problems. Since RecordingCommands are so much easier to work with than
EMF Commands I would like to use them instead.

Anyone with experiences in doing this with CDO 2.0 ?

---
Anders
Re: [cdo] Using RecordingCommands and CDO [message #426471 is a reply to message #426469] Wed, 07 January 2009 15:26 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Anders,

Note that EMF.Edit directly has a ChangeCommand as well for the exactly
same purpose, but without transactional dependencies. I.e., you just
need to be clear when you create the command which objects should be
monitored for changes, and then you can work directly with those objects
without use of fine grained commands and still have undo support...


Anders Forsell wrote:
> I have heard that using EMF transactions and CDO can cause some
> problems. Since RecordingCommands are so much easier to work with than
> EMF Commands I would like to use them instead.
>
> Anyone with experiences in doing this with CDO 2.0 ?
>
> ---
> Anders


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [cdo] Using RecordingCommands and CDO [message #426479 is a reply to message #426469] Wed, 07 January 2009 19:55 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Anders,

I'm not sure if the term RecordingCommands corresponds to a concrete
technology and if so, I suspect that I have no experience with it. CDO
has its own kind of delta model for tracking model changes. It is
queriable through public API (CDORevisionDelta) but so far we do not
have any support of undoing single changes. If this is what you are
looking for I think it would make a reasonable feature request.
Currently I can not predict how much effort it would cause us or which
priority we would denote to it, but please feel free to file a Bugzilla
so that we do not forget about it.

Cheers
/Eike

----
http://thegordian.blogspot.com



Anders Forsell schrieb:
> I have heard that using EMF transactions and CDO can cause some
> problems. Since RecordingCommands are so much easier to work with than
> EMF Commands I would like to use them instead.
>
> Anyone with experiences in doing this with CDO 2.0 ?
>
> ---
> Anders


Re: [cdo] Using RecordingCommands and CDO [message #426484 is a reply to message #426471] Wed, 07 January 2009 21:39 Go to previous message
Anders Forsell is currently offline Anders ForsellFriend
Messages: 127
Registered: July 2009
Senior Member
Oh, I wasn't aware of the EMF.Edit ChangeCommand.
I'll definitely try that.

Thanks Ed!

---
Anders

Ed Merks wrote:
> Anders,
>
> Note that EMF.Edit directly has a ChangeCommand as well for the exactly
> same purpose, but without transactional dependencies. I.e., you just
> need to be clear when you create the command which objects should be
> monitored for changes, and then you can work directly with those objects
> without use of fine grained commands and still have undo support...
>
>
> Anders Forsell wrote:
>> I have heard that using EMF transactions and CDO can cause some
>> problems. Since RecordingCommands are so much easier to work with than
>> EMF Commands I would like to use them instead.
>>
>> Anyone with experiences in doing this with CDO 2.0 ?
>>
>> ---
>> Anders
Previous Topic:[CDO] CDO2.0 and Eclipse 3.5 using p2
Next Topic:UnRegistered Package Predicament
Goto Forum:
  


Current Time: Sat Apr 20 04:01:22 GMT 2024

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

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

Back to the top