CommandStack [message #127354] |
Fri, 18 May 2007 16:36 |
Eclipse User |
|
|
|
Originally posted by: james.willans.xactium.com
I'm a little confused. We have a GMF editor and view which share the same
transactional editing domain. We now wish to add actions to the view such
as undo. When we test the enablement of the undo action using:
getDomain().getCommandStack().canUndo();
the value is always false, even though there has been activity on the
diagram (and the diagram undo is enabled). When a listener is added to
the editing domain's command stack:
getDomain().getCommandStack().addCommandStackListener(this);
The listener never gets called. It is almost as if the editing domain
being tested is not the one used by the diagram, however we are confident
it is. What might be going wrong?
James
|
|
|
Powered by
FUDForum. Page generated in 0.02563 seconds