Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Custom Event
Custom Event [message #335350] Fri, 03 April 2009 06:45 Go to next message
Eclipse UserFriend
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 09:05 Go to previous messageGo to next message
Eclipse UserFriend
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 18:08 Go to previous message
Eclipse UserFriend
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: Thu May 01 22:00:21 EDT 2025

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

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

Back to the top