How to switch into MeshPaintMode with c++

Why are these LevelEditorActions commented out in LevelEditorActions.h? They are listed in the documentation, but do not exist.
Is there a way to call / switch to one of those editors modes via C++? (in particular MeshPaintMode)

///**
// * Mode Commands
// */
//TSharedPtr< FUICommandInfo > BspMode;
//TSharedPtr< FUICommandInfo > MeshPaintMode;
//TSharedPtr< FUICommandInfo > LandscapeMode;
//TSharedPtr< FUICommandInfo > FoliageMode;