Skip to main content



      Home
Home » Eclipse Projects » GEF » Why is CommandStack.notifyListeners deprecated?
Why is CommandStack.notifyListeners deprecated? [message #225714] Wed, 01 November 2006 16:28 Go to next message
Eclipse UserFriend
I have noticed that CommandStack.notifyListeners has been marked
deprecated even though no migration path is offered and indeed GEF
internals still rely on this indirectly because they use the
addCommandStackListeners to add listeners to the list (also deprecated)
that is used to fire events using notifyListeners(). Also, the
deprecation statement for the deprecated "listeners" member unhelpfully
points to the deprecated notifyListeners() method.

What is the intention of this deprecation and what is the migration path
to ensure future API conformance?


--Cam
Re: Why is CommandStack.notifyListeners deprecated? [message #226214 is a reply to message #225714] Tue, 07 November 2006 16:42 Go to previous messageGo to next message
Eclipse UserFriend
Any ideas?
Re: Why is CommandStack.notifyListeners deprecated? [message #226255 is a reply to message #226214] Wed, 08 November 2006 11:34 Go to previous message
Eclipse UserFriend
Hi Cameron,

This was changed back in GEF 3.0 in 2004 for Bugzilla 77400.

Clients should use CommandStack.notifyListeners(Command, int) when extending
CommandStack. The API now gives the command being handled by the stack as
well as the notification state : PRE_EXECUTE, POST_EXECUTE, POST_UNDO, etc.

Cheers...
Anthony

"Cameron Bateman" <cameron.bateman@oracle.com> wrote in message
news:dd2303131a5d32a5849b111f737aa6af$1@www.eclipse.org...
> Any ideas?
>
Previous Topic:change figure associated with an edit-part dynamically
Next Topic:Order of realization of Connection
Goto Forum:
  


Current Time: Wed May 14 11:04:04 EDT 2025

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

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

Back to the top