Revert "Revert "Javadoc for addViewMenuAction.""

This reverts commit 3de335a0776a5402a66c124af3934e3015281076.