java RCP SWT the registerContextMenu(...) are lost

42 views Asked by At

In Java-SWT-RCP, I create several composites programmatically.

For each of them I register a menu:

eMenuService.registerContextMenu(this, "SourceViewer.popupmenu");

Everything work fine!

But, if I dispose one of the composites with the routine .dispose.

All the other composites lost the popupmenu.

Is there any method to unregister the menu properly, before it dispose the composite?

enter image description here

0

There are 0 answers