Stef refactored all dockingbar related things out of MenuMorph into DockingBarMenuMorph, the
problem is, spec does not distinguish between
- create a popup menu from a spec
- create a dockbar menu from a spec
I tried to implement this by providing a new buildWithSpecAsMenu and changed the
MorphicMenuAdapter to create a MenuMorph (for popup menus) and DockingBarMenuMorph (for the other one).
But it turns out I had to duplicate all the xPopup methods:
buildWidgetPopup - buildWidgetMenu
adaptAsPopup - adaptAsMenu
buildWithSpecAsPopup - buildWithSpecAsMenu
and this doesn't look right to me. As MorphicMenuAdapter is the only MorphicAdapter that
implements special adaptAsX method, all this (popup-)menu related build/adapt methods looks like a hack.
But I am not sure.