refactor DiagramDesignerWidget.ContextMenu