Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » CommandStack
CommandStack [message #127354] Fri, 18 May 2007 16:36
Eclipse UserFriend
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
Previous Topic:Double click on diagramelement
Next Topic:Dynamically generated editing domains
Goto Forum:
  


Current Time: Sun Dec 22 03:22:13 GMT 2024

Powered by FUDForum. Page generated in 0.03365 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top