code: private void initUserMenu() {
  
          if (!m_user.isManaged()) {
              m_menu.addMenuEntry(
                  CmsVaadinUtils.getMessageText(org.opencms.ui.Messages.GUI_CHANGE_PASSWORD_BUTTON_0),
                  null).addClickListener(new ClickListener() {
  
                      private static final long serialVersionUID = 1L;
  
                      public void buttonClick(ClickEvent event) {
  
                          m_context.start(
                              CmsVaadinUtils.getMessageText(org.opencms.ui.Messages.GUI_PWCHANGE_HEADER_0)
                                  + m_user.getSimpleName(),
                              new CmsChangePasswordDialog(m_context));
                      }
                  });
          }
          final CmsPreferencesDialogAction preferencesAction = new CmsPreferencesDialogAction();
          m_menu.addMenuEntry(preferencesAction.getTitle(A_CmsUI.get().getLocale()), null).addClickListener(
              new ClickListener() {
  
                  private static final long serialVersionUID = 1L;
  
                  public void buttonClick(ClickEvent event) {
  
                      preferencesAction.executeAction(m_context);
                  }
              });
          if (!m_user.isManaged()) {
              m_menu.addMenuEntry(CmsVaadinUtils.getMessageText(Messages.GUI_USER_EDIT_0), null).addClickListener(
                  new Button.ClickListener() {
  
                      private static final long serialVersionUID = 1L;
  
                      public void buttonClick(ClickEvent event) {
  
                          editUserData();
                      }
                  });
          }
          m_menu.addMenuEntry(
              CmsVaadinUtils.getMessageText(org.opencms.workplace.explorer.Messages.GUI_EXPLORER_CONTEXT_LOGOUT_0),
              null).addClickListener(new Button.ClickListener() {
  
                  private static final long serialVersionUID = 1L;
  
                  public void buttonClick(ClickEvent event) {
  
                      logout();
                  }
              });
      }
docs: Initializes the use menu.<p>