Bug 306320

Summary: Need notification for creation of MenuItem
Product: [Eclipse Project] Platform Reporter: Prakash Rangaraj <prakash>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: pwebster
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 242357    

Description Prakash Rangaraj CLA 2010-03-18 02:24:50 EDT
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
Comment 1 Paul Webster CLA 2010-03-19 07:49:33 EDT
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
Comment 2 Eclipse Webmaster CLA 2019-09-06 15:30:36 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.
Comment 3 Eclipse Webmaster CLA 2019-09-06 15:34:52 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.