[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] undo property changes

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