Changeset 720 for AE/installer2/src/net/oni2/aeinstaller/gui/modtable
- Timestamp:
- Mar 21, 2013, 12:33:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/modtable/ModTable.java
r708 r720 35 35 import javax.swing.table.TableRowSorter; 36 36 37 import net.oni2.SettingsManager; 37 38 import net.oni2.aeinstaller.backend.packages.Package; 38 39 import net.oni2.aeinstaller.backend.packages.Type; 39 40 import net.oni2.aeinstaller.gui.downloadwindow.Downloader; 40 import net.oni2.settingsmanager.Settings;41 41 42 42 /** … … 103 103 List<RowSorter.SortKey> sortKeys = new ArrayList<RowSorter.SortKey>(); 104 104 105 int sortCol = Settings .getInstance().get("modSortColumn", 1);106 SortOrder sortOrder = SortOrder.valueOf(Settings .getInstance().get(105 int sortCol = SettingsManager.getInstance().get("modSortColumn", 1); 106 SortOrder sortOrder = SortOrder.valueOf(SettingsManager.getInstance().get( 107 107 "modSortOrder", "ASCENDING")); 108 108 … … 244 244 int col = keys.get(0).getColumn(); 245 245 SortOrder so = keys.get(0).getSortOrder(); 246 Settings .getInstance().put("modSortColumn", col);247 Settings .getInstance().put("modSortOrder", so.toString());246 SettingsManager.getInstance().put("modSortColumn", col); 247 SettingsManager.getInstance().put("modSortOrder", so.toString()); 248 248 } 249 249 } … … 459 459 for (int i = 1; i < columns.size(); i++) { 460 460 TableColumn tc = columns.get(i); 461 if (!Settings .getInstance().get(461 if (!SettingsManager.getInstance().get( 462 462 String.format("modShowColumn%02d", tc.getModelIndex()), 463 463 true)) … … 506 506 tcm.removeColumn(col); 507 507 } 508 Settings .getInstance().put(508 SettingsManager.getInstance().put( 509 509 String.format("modShowColumn%02d", 510 510 col.getModelIndex()), itm.isSelected());
Note:
See TracChangeset
for help on using the changeset viewer.