[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Changes via PropertySheet and undo/redo
|
- From: Arne <Erazerx@xxxxxx>
- Date: Sun, 01 Mar 2009 14:05:31 +0100
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
Hi Javier,
first to the other thread: I had solved the problem only for some custom
Clipboard Actions for the diagram editor. There i wrapped EMF commands
into GMF commands. To get undo / redo to work, i simply had to add a
"EditingDomainUndoContext".
I have the same problem for all changes made in the Propertys View. I
was trying to manipulate the Providers in the Edit-Code to create some
custom commands, since all commands that are responsible for setting the
attributes are created from the "createSetCommand(..)" methods in the
corresponding provider.
However, i tried to return some other commands there that implement the
"IUndoableOperation" Interface and add a "ResourceUndoContext" and a
"EditingDomainUndoContext", but i didn't get it to work. But i think
this could be the right way to do it and i was just doing something
wrong. Please let me know if you get it to work.
Arne
Javier Cardenete schrieb:
> Hello all,
>
> I've been working with GMF for some months now and I didn't realize of a
> problem until now. When I make any change on an element through the
> PropertySheetPage, afterwards the undo/redo actions don't notice such a
> change. It's happening with the Mindmap example and with some other
> simple examples I made on my own. Is it sth weird or is it normal behavior?
>
> Thanks