Community
Participate
Working Groups
We have reference to a Menu. We need to know when a client creates new MenuItem in that menu. Currently I don't see any way to get notified of the creation of the menu items. I tried SWT.Skin, but didn't get any notification. It would be great if we could get a notification when a MenuItem is created on a Menu. Encountered this when fixing: https://bugs.eclipse.org/bugs/show_bug.cgi?id=221172
display.addListener(SWT.Skin, new Listener() { public void handleEvent(Event event) { System.err.println("New event for : " + event.widget); } }); Skin events are fired for new widget construction, although some work has to be done to figure out that they have just been constructed. Is there a simple way to check if this is the first Skin event for a widget? PW
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.