Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Question: SWT analogue of java.awt.event.ContainerListener?
Question: SWT analogue of java.awt.event.ContainerListener? [message #501610] Thu, 03 December 2009 06:30 Go to next message
Sandip Chitale is currently offline Sandip ChitaleFriend
Messages: 27
Registered: July 2009
Location: California, USA
Junior Member
Folks,

Is there a way to monitor creation of controls in the SWT hierarchy?

For example, in Swing one can use recursively added java.awt.event.ContainerListener or to do it centrally using:

java.awt.Toolkit.getDefaultToolkit().addAWTEventListener(AWT EventListener instance, java.awt.event.ContainerEvent.COMPONENT_ADDED);

thanks in advance,
Sandip
Re: Question: SWT analogue of java.awt.event.ContainerListener? [message #501707 is a reply to message #501610] Thu, 03 December 2009 14:40 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Hi Sandip,

There's not currently notification available for creation of Controls. This
has been asked before, but I don't see an existing feature request for it in
bugzilla, so feel free to log one at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT&bug_severity=enhancement .

Grant


"Sandip Chitale" <sandipchitale@gmail.com> wrote in message
news:hf7lto$va1$1@build.eclipse.org...
> Folks,
>
> Is there a way to monitor creation of controls in the SWT hierarchy?
>
> For example, in Swing one can use recursively added
java.awt.event.ContainerListener or to do it centrally using:
>
> java.awt.Toolkit.getDefaultToolkit().addAWTEventListener(AWT
EventListener instance, java.awt.event.ContainerEvent.COMPONENT_ADDED);
>
> thanks in advance,
> Sandip
Re: Question: SWT analogue of java.awt.event.ContainerListener? [message #501750 is a reply to message #501707] Thu, 03 December 2009 16:44 Go to previous message
Sandip Chitale is currently offline Sandip ChitaleFriend
Messages: 27
Registered: July 2009
Location: California, USA
Junior Member
Hi Grant,

I have filed the enhancement request:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=296829

Regards,
Sandip
Previous Topic:Get the TableEditors objects hosted in a TableItem
Next Topic:Add a MultiButtonCellEditor to a tableViewer
Goto Forum:
  


Current Time: Sat Dec 20 17:31:46 GMT 2014

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

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