Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » ChangeListener on MPartStack?
ChangeListener on MPartStack? [message #1222023] Thu, 19 December 2013 13:01 Go to next message
Mar Ifla is currently offline Mar IflaFriend
Messages: 22
Registered: September 2013
Junior Member
I want the Message Broker to send an event when the user selects another Part from my MPartStack.
I can't find a way to add a Listener or something.

How would I do this?


Re: ChangeListener on MPartStack? [message #1222030 is a reply to message #1222023] Thu, 19 December 2013 14:25 Go to previous messageGo to next message
Eclipse UserFriend
On 12/19/2013 02:01 PM, Mar Ifla wrote:
> I want the Message Broker to send an event when the user selects another
> Part from my MPartStack.
> I can't find a way to add a Listener or something.
> How would I do this?

Hi,

you just listen on a corresponding event topic with e.g.
@UIEventTopic(UIEvents.UILifeCycle.BRINGTOTOP). See e4ty5MinutesApp [1]
where I have done this as part of a presentation.

M.

[1]
https://github.com/kuppe/e4ty5MinutesApp/commit/bb52788f18e305807da52a5aabb135b6b60d6289
Re: ChangeListener on MPartStack? [message #1222064 is a reply to message #1222030] Thu, 19 December 2013 15:32 Go to previous messageGo to next message
Mar Ifla is currently offline Mar IflaFriend
Messages: 22
Registered: September 2013
Junior Member
Weird.

Thanks! Smile
Re: ChangeListener on MPartStack? [message #1222206 is a reply to message #1222064] Thu, 19 December 2013 22:35 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
well you can also listen to the selected element change!

Tom

On 19.12.13 16:33, Mar Ifla wrote:
> Weird.
>
> Thanks! :)
Previous Topic:Overriding Ctrl-W behavior
Next Topic:no e4 tools repository
Goto Forum:
  


Current Time: Thu Apr 18 18:18:25 GMT 2024

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

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

Back to the top