[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] undo property changes
|
- From: Irina Sudnik <fake@xxxxxxxxxx>
- Date: Tue, 25 Sep 2007 11:15:18 +0200
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0b1pre (Windows/20060917)
Hi,
my task is to update model if some diagram element has been renamed. I
override createSetCommand() method:
CompoundCommand cc = new CompoundCommand();
cc.append(super.createSetCommand(domain,owner,feature,value));
cc.append(new UpdateCommand());
return cc;
This works perfectly if I use F2. If I use properties sheet undo works
wrong. The method cc.undo() is never called. Instead
org.eclipse.gmf.runtime.common.ui.action.actions.global.GlobalUndoAction
is called. How can I set the other undo action or undo action handler
for properties sheet of the diagram editor? Is there another way to
control property changes?
Thanks in advance
Irina