Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Multiple Property Change Commands w/ EMF.Edit
Multiple Property Change Commands w/ EMF.Edit [message #221238] Fri, 11 August 2006 00:03
Eclipse UserFriend
Originally posted by: Daniel.Rozeboom.cda.canon.com

Hey there,

I'm not sure how best to label this problem, but basically I have a
situation where I am changing an EMF feature from a GEF editor through the
properties page. When I set the value in the properties view (which is
using my editor's UndoablePropertySheetPage), it uses the SetValueCommand
and all that jazz to do the model changes in an undoable fashion. However,
I want to implement some extra functionality wherein I make other changes to
the model as a result of that first change. Right now I placed that extra
functionality in the corresponding set method in the model, but as you may
guess, that does not store the old values that are getting adjusted.
Therefore, my property change command is not truly undoable; it only un-does
the intended change and not the additional changes.

My question is, is there a way (via custom property descriptors or
editors or what have you) to implement a series of undoable commands as a
result of a changed value in the properties view? If so, is it reasonably
feasible? Perhaps this is poor form in terms of a GEF editor; should those
extra changes always be performed by listeners on the target of the primary
change? Any advice you can give would be most appreciated - thanks.

- Daniel
Previous Topic:How to center a multiline Label inside a RoundedRectangle?
Next Topic:Error when Using of Timer
Goto Forum:
  


Current Time: Sat Apr 27 01:05:43 GMT 2024

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

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

Back to the top