Bug 296829 - Support ability to monitor addition/removal of controls to SWT widget hierarchy
Summary: Support ability to monitor addition/removal of controls to SWT widget hierarchy
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-03 11:37 EST by Sandip Chitale CLA
Modified: 2019-09-06 15:36 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.