[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Undo / Redo for whole Commandstack
|
- From: Arne <Erazerx@xxxxxx>
- Date: Thu, 12 Feb 2009 14:16:26 +0100
- Newsgroups: eclipse.modeling.gmf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
Hello Alex,
thank you very much! I really was doing it wrong with the IUndoContext.
You helped me a lot.
Arne
Alex Shatalin schrieb:
> Hello Arne,
>
> All the commands in GMF (EMF-based or GEF-based) are executed through
> eclipse command stack now. I think the problem is in incorrect âundo
> contextâ used by some commands in your editor or Undo/redo actions. In
> general each IUndoableOperation can have several IUndoContext attached,
> so there should be a code attaching proper UndoContext to each command
> executed through GEF/EMF. I do not remember then appropriate context
> will be attached to each command executed in GMF-generated editor (this
> code is not so simple and spread around the GMF) but I know there is
> such place(s) in code and I think you can try finding that by debugging.
> AFAIR I was able to implement multipage editor with EMF/GMF pages and
> common undo/redo stack and an idea was: attach appropriate undo context
> to each executed command and then use this context in undo/redo actions.
>
> -----------------
> Alex Shatalin
>
>