containerFactory.createConceptGroup(this);
// disabling for testing
-// for(AbstractGroupedContainer container : getGroupedContainers()){
-// container.setMenu(getMenu());
-// }
+ for(AbstractGroupedContainer container : getGroupedContainers()){
+ container.setMenu(getMenu());
+ }
// Redraw composite
-
managedForm.reflow(true);
}
*/
public Menu getMenu() {
if(menu == null || menu.isDisposed()){
- if(menu != null && menu.isDisposed()){
- logger.error("Creating new Menu because it was disposed. This should not have happened");
- }
+ // Creating the menu because it was either not initialised or disposed while refreshing the editor
menu = menuManager.createContextMenu(parent);
}
return menu;