public Menu getContextMenu() {
if (menu == null) {
menu = new Menu();
menu.addItem(new AttributesAction(mapWidget));
menu.addItem(new MenuItemSeparator());
menu.addItem(new UndoOperationAction(mapWidget, this));
menu.addItem(new CancelEditingAction(mapWidget, (ParentEditController) parent));
menu.addItem(new SaveEditingAction(mapWidget, (ParentEditController) parent));
menu.addItem(new ToggleEditModeAction((ParentEditController) parent));
menu.addItem(new MenuItemSeparator());
menu.addItem(new InsertPointAction(mapWidget));