|
|
Re: Disposed control causes that popup menu stops working [message #1279144 is a reply to message #1277674] |
Fri, 28 March 2014 09:45 |
Martin Bayer Messages: 32 Registered: December 2012 |
Member |
|
|
Hi,
I just tried it and still not working. I checked my local MenuManagerRenderer to be sure I'm using fixed version and it contains changes in toBeRenderedUpdater event handler.
I'm sharing more source code for you to explain the situation better. The difference between bug you mentioned and my problem is that in bug, the context menu was registered to the part. I have following situation:
I created new control:
public class CanvasProcessorItem extends Composite
...
public CanvasProcessorItem(Composite parent, int style,
ProcessorPaletteItem selectedObject, EMenuService menuService,
IEclipseContext context, int neededImageHeight, int neededImageWidth) {
super(parent, style | SWT.BORDER);
...
initPopupMenu(menuService);
...
}
private void initPopupMenu(EMenuService menuService) {
menuService.registerContextMenu(this,ContextVariables.ITEM_POPUP_MENU_ID);
}
where ContextVariables.ITEM_POPUP_MENU_ID is the identifier for popup menu...
I can see I described my problem completely wrong (because menu is not registered for the part) so I'm really sorry for that...
Thank you and wish you nice day...
|
|
|
Powered by
FUDForum. Page generated in 0.03994 seconds