Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Fire Listener automatically
Fire Listener automatically [message #443032] Thu, 16 September 2004 17:18 Go to next message
Eclipse UserFriend
Originally posted by: pdesmith.yahoo.com

I have a tree that adds a treeItem and automatically selects it. When
this happens I'd like to fire off a listener that would do some other
action as if the user selected the item themselves. How can I accomplish
this?
Re: Fire Listener automatically [message #443062 is a reply to message #443032] Fri, 17 September 2004 22:37 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You can issue your own events using Control.notifyListeners(). Note that
this just calls Java listeners. It doesn't send the event through the
operating system.

"Peter Desmith" <pdesmith@yahoo.com> wrote in message
news:cichs8$sq5$1@eclipse.org...
> I have a tree that adds a treeItem and automatically selects it. When
> this happens I'd like to fire off a listener that would do some other
> action as if the user selected the item themselves. How can I accomplish
> this?
>
Previous Topic:Setting Fonts
Next Topic:Size of View
Goto Forum:
  


Current Time: Fri Apr 19 20:12:50 GMT 2024

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

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

Back to the top