public void fillConstraintsAction(MenuManager menu, Component child) {
if (!(child instanceof JMenuBar)) {
JPanelAdapter contentAdapter = (JPanelAdapter) ((RootPaneContainerAdapter) adaptable)
.getContentAdapter();
if (contentAdapter != null) {
CompositeMenuContext context = (CompositeMenuContext) contentAdapter
.getAdapter(IMenuContext.class);
context.fillConstraintsAction(menu, child);
}
}
}