Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » EMF.edit commands
EMF.edit commands [message #473773] Fri, 06 July 2007 02:48 Go to next message
Bogdan Pistol is currently offline Bogdan PistolFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

I have a few things not very clear about the edit commands.

I'm using an AdapterFactoryEditingDomain with commands in a
BasicCommandStack. I tested successfully the ChangeCommand (it modifies the
model and undo/redo works).

Is there a reason I should use SetCommand, or AddCommand or other commands?
I could make the same "set" and "add" with model changes inside a ChangeCommand.
What is the difference between the two approaches?

Thanks

Bogdan Pistol,
Re: EMF.edit commands [message #473876 is a reply to message #473773] Fri, 06 July 2007 11:58 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 28963
Registered: July 2009
Senior Member
Bogdan,

I guess you got send happy. :-)


Bogdan Pistol wrote:
> Hello,
>
> I have a few things not very clear about the edit commands.
>
> I'm using an AdapterFactoryEditingDomain with commands in a
> BasicCommandStack. I tested successfully the ChangeCommand (it modifies the
> model and undo/redo works).
>
> Is there a reason I should use SetCommand, or AddCommand or other commands?
> I could make the same "set" and "add" with model changes inside a ChangeCommand.
> What is the difference between the two approaches?
>
> Thanks
>
> Bogdan Pistol,
>
Re: EMF.edit commands [message #622852 is a reply to message #473773] Fri, 06 July 2007 11:58 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 28963
Registered: July 2009
Senior Member
Bogdan,

I guess you got send happy. :-)


Bogdan Pistol wrote:
> Hello,
>
> I have a few things not very clear about the edit commands.
>
> I'm using an AdapterFactoryEditingDomain with commands in a
> BasicCommandStack. I tested successfully the ChangeCommand (it modifies the
> model and undo/redo works).
>
> Is there a reason I should use SetCommand, or AddCommand or other commands?
> I could make the same "set" and "add" with model changes inside a ChangeCommand.
> What is the difference between the two approaches?
>
> Thanks
>
> Bogdan Pistol,
>
Previous Topic:Problem with navigable owned end
Next Topic:How get actual class attributes from uml class
Goto Forum:
  


Current Time: Sun Nov 19 16:24:24 GMT 2017

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

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