private void loadPrefs(boolean sortOnly)
    {
        if (!sortOnly)
        {
            DefaultComboBoxModel<String> model = (DefaultComboBoxModel<String>) cmbFilter.getModel();
            for (int i = 0; i < 20; i++)
            {
                String item = prefs.get(PREFS_KEY_FILTER + i, " ");
                if (!item.equals(" "))
                {
                    if (model.getIndexOf(item) == -1)
                        cmbFilter.addItem(item);
                }
            }

            cmbFilter.setSelectedIndex(-1);

            if (cmbMappingVersion.getItemCount() > 0)
            {
                btnRefreshTables.setEnabled(true);
                cmbMappingVersion.setSelectedIndex(0);
            }
            else
                btnRefreshTables.setEnabled(false);
        }

        classSort.clear();
        methodSort.clear();
        paramSort.clear();
        fieldSort.clear();

        int i = prefs.getInt(PREFS_KEY_CLASS_SORT, 1);
        classSort.add(new RowSorter.SortKey(Math.abs(i) - 1, i > 0 ? SortOrder.ASCENDING : SortOrder.DESCENDING));
        tblClasses.getRowSorter().setSortKeys(classSort);

        i = prefs.getInt(PREFS_KEY_METHOD_SORT, 1);
        methodSort.add(new RowSorter.SortKey(Math.abs(i) - 1, i > 0 ? SortOrder.ASCENDING : SortOrder.DESCENDING));
        tblMethods.getRowSorter().setSortKeys(methodSort);

        i = prefs.getInt(PREFS_KEY_PARAM_SORT, 1);
        paramSort.add(new RowSorter.SortKey(Math.abs(i) - 1, i > 0 ? SortOrder.ASCENDING : SortOrder.DESCENDING));
        tblParams.getRowSorter().setSortKeys(paramSort);

        i = prefs.getInt(PREFS_KEY_FIELD_SORT, 1);
        fieldSort.add(new RowSorter.SortKey(Math.abs(i) - 1, i > 0 ? SortOrder.ASCENDING : SortOrder.DESCENDING));
        tblFields.getRowSorter().setSortKeys(fieldSort);
    }