Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Why is CommandStack.notifyListeners deprecated?
Why is CommandStack.notifyListeners deprecated? [message #225714] Wed, 01 November 2006 21:28 Go to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 480
Registered: July 2009
Senior Member
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 21:42 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 480
Registered: July 2009
Senior Member
Any ideas?
Re: Why is CommandStack.notifyListeners deprecated? [message #226255 is a reply to message #226214] Wed, 08 November 2006 16:34 Go to previous message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
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:[Announce] GEF 3.3 Project Plans
Next Topic:Setting contents of the editor
Goto Forum:
  


Current Time: Mon Dec 11 09:41:37 GMT 2017

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

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