Bug 296829

Summary: Support ability to monitor addition/removal of controls to SWT widget hierarchy
Product: [Eclipse Project] Platform Reporter: Sandip Chitale <sandipchitale>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Sandip Chitale CLA 2009-12-03 11:37:37 EST
Some times it is necessary to monitor the SWT widget hierarchy for addition and removal of widgets. For example, this can be useful for applying a common theming (colors and fonts) to the Application GUI.

For example, in AWT/Swing one can use recursively added
java.awt.event.ContainerListener or to do the monitorig.

Or even better using:

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

one can monitor the java.awt.Component (analog of SWT's control) in a central place.

I can imagine support for this on the Display objects.

This facility should support monitoring of Shell creation also. This could be made available as a shellOpened event.
Comment 1 Eclipse Webmaster CLA 2019-09-06 15:36:18 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.