Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Custom Event
Custom Event [message #335350] Fri, 03 April 2009 10:45 Go to next message
Aleksander Braula is currently offline Aleksander BraulaFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

I created a custom Event which I want to fire in a contex menu action.
I have added a listener in a different place, waiting for the event to
come.

How do I fire the event ?

darkh
Re: Custom Event [message #335352 is a reply to message #335350] Fri, 03 April 2009 13:05 Go to previous messageGo to next message
Mircea Luchian is currently offline Mircea LuchianFriend
Messages: 89
Registered: July 2009
Member
Hello,

After you define your action listener, in the code where you need to
fire the event, you need to access your action listener and give it an
ActionEvent (java.awt) object:
actionListener.actionPerfromed(new ActionEvent(...));
This will fire your event for your listener.

Mircea

Aleksander Braula wrote:
> Hi,
>
> I created a custom Event which I want to fire in a contex menu action.
> I have added a listener in a different place, waiting for the event to
> come.
>
> How do I fire the event ?
>
> darkh
>
Re: Custom Event [message #335367 is a reply to message #335352] Fri, 03 April 2009 22:08 Go to previous message
Aleksander Braula is currently offline Aleksander BraulaFriend
Messages: 6
Registered: July 2009
Junior Member
This is what is was looking for :)
Thank You.

darkh
Previous Topic:Re: Re-open file in existing editor
Next Topic:ad in cragislist: http://austin.craigslist.org/fuo/1104550719.html
Goto Forum:
  


Current Time: Wed Apr 24 22:39:14 GMT 2024

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

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

Back to the top