Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Sharing Event Listener
Sharing Event Listener [message #106279] Mon, 12 September 2005 19:50 Go to next message
Abalhassan Sheikh is currently offline Abalhassan SheikhFriend
Messages: 8
Registered: July 2009
Junior Member
I can't seem to figure out how to have several components share the same
event listener. whenever i go to the Events -> Add Events menu the option
to use existing class is disable. When i add the class manually it doesn't
display it in the Java Beans viewer. I tried both having an named inner
class and i also tried having the class implement ActionListener.
Re: Sharing Event Listener [message #106293 is a reply to message #106279] Mon, 12 September 2005 19:59 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

We don't facilitate sharing of event handlers between instances. The
"use existing class" means use an existing handler of same type on same
instance to listen for a different event that the handler type can
handle. For instance, WindowListener has several events, windowClosed,
windowOpened, etc. Now say you were listening on one window for
windowClosed. Now you also want to listen to windowOpened using the same
handler. In this case the use existing class will be enabled because you
are using the same handler for two events that occur on the same type of
handler for the same instance.

We only support the old IBM VisualAge for Java style of sharing event
handlers between instances visually. But that is not what you want here.
You can only do it through the code and not visually.


--
Thanks,
Rich Kulp
Re: Sharing Event Listener [message #610743 is a reply to message #106279] Mon, 12 September 2005 19:59 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

We don't facilitate sharing of event handlers between instances. The
"use existing class" means use an existing handler of same type on same
instance to listen for a different event that the handler type can
handle. For instance, WindowListener has several events, windowClosed,
windowOpened, etc. Now say you were listening on one window for
windowClosed. Now you also want to listen to windowOpened using the same
handler. In this case the use existing class will be enabled because you
are using the same handler for two events that occur on the same type of
handler for the same instance.

We only support the old IBM VisualAge for Java style of sharing event
handlers between instances visually. But that is not what you want here.
You can only do it through the code and not visually.


--
Thanks,
Rich Kulp
Previous Topic:Sharing Event Listener
Next Topic:How to remove Properties from the Property Sheet
Goto Forum:
  


Current Time: Fri Apr 26 09:18:24 GMT 2024

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

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

Back to the top