@Override
 public final void restoreSettings() {
   int type = GuiSettings.getShowFilenameInWindowTitle();
   if (type >= GuiSettings.SHOW_NO_FILENAME && type <= GuiSettings.SHOW_FULL_PATH) {
     this.windowTitleComboBox.setSelectedIndex(type);
   }
   this.showProfileGroup.setSelected(GuiSettings.getShowProfileGroupInWindowTitle());
   this.showWorkspace.setSelected(GuiSettings.getShowWorkspaceInWindowTitle());
   this.productAtEnd.setSelected(GuiSettings.getShowProductNameAtEnd());
   this.showUrl.setSelected(GuiSettings.getShowURLinWindowTitle());
   this.includeUser.setSelected(GuiSettings.getIncludeUserInTitleURL());
   this.includeUser.setEnabled(showUrl.isSelected());
   String enclose = GuiSettings.getTitleGroupBracket();
   if (enclose == null) {
     encloseChar.setSelectedIndex(0);
   } else {
     int count = encloseChar.getItemCount();
     for (int i = 1; i < count; i++) {
       String item = (String) encloseChar.getItemAt(i);
       if (item.startsWith(enclose.trim())) {
         encloseChar.setSelectedIndex(i);
         break;
       }
     }
   }
   checkShowProfile();
   this.titleGroupSep.setText(GuiSettings.getTitleGroupSeparator());
 }
 public WindowTitleBuilder() {
   setShowProductNameAtEnd(GuiSettings.getShowProductNameAtEnd());
 }