protected void updateComponents(boolean b) {
    if (b) {
      if (!isPopAccount()) {
        trashButton.setText(getPath(item.get(SpecialFoldersItem.TRASH)));
      }

      draftsButton.setText(getPath(item.get(SpecialFoldersItem.DRAFTS)));
      templatesButton.setText(getPath(item.get(SpecialFoldersItem.TEMPLATES)));
      sentButton.setText(getPath(item.get(SpecialFoldersItem.SENT)));

      if (isPopAccount()) {
        inboxButton.setText(getPath(item.get(SpecialFoldersItem.INBOX)));
      }

      defaultAccountCheckBox.setSelected(item.getBoolean(SpecialFoldersItem.USE_DEFAULT_ACCOUNT));

      defaultAccountCheckBox.setEnabled(
          MailConfig.getInstance().getAccountList().getDefaultAccountUid()
              == accountItem.getInteger(SpecialFoldersItem.UID));

      if (defaultAccountCheckBox.isEnabled() && defaultAccountCheckBox.isSelected()) {
        showDefaultAccountWarning();
      } else {
        layoutComponents();
      }
    } else {
      if (!isPopAccount()) {
        item.setString(SpecialFoldersItem.TRASH, getUid(trashButton.getText()));
      }

      item.setString(SpecialFoldersItem.DRAFTS, getUid(draftsButton.getText()));
      item.setString(SpecialFoldersItem.TEMPLATES, getUid(templatesButton.getText()));
      item.setString(SpecialFoldersItem.SENT, getUid(sentButton.getText()));

      if (isPopAccount()) {
        item.setString(SpecialFoldersItem.INBOX, getUid(inboxButton.getText()));
      }

      item.setBoolean(SpecialFoldersItem.USE_DEFAULT_ACCOUNT, defaultAccountCheckBox.isSelected());
    }
  }
 protected boolean isPopAccount() {
   return accountItem.isPopAccount();
 }