- Timestamp:
- 2019-01-03T20:46:10+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java
r13758 r14631 9 9 import java.util.Comparator; 10 10 import java.util.List; 11 import java.util.Locale; 11 12 import java.util.Map; 12 13 import java.util.Map.Entry; … … 37 38 import org.openstreetmap.josm.tools.Logging; 38 39 import org.openstreetmap.josm.tools.Pair; 40 import org.openstreetmap.josm.tools.Utils; 39 41 40 42 /** … … 60 62 private void addToPanel(final CacheAccess<String, BufferedImageCacheEntry> cache, final String name) { 61 63 final Long cacheSize = getCacheSize(cache); 64 final String sizeString = Utils.getSizeString(cacheSize, Locale.getDefault()); 62 65 final TableModel tableModel = getTableModel(cache); 63 66 64 67 GuiHelper.runInEDT(() -> { 65 add(new JLabel(tr("{0} cache, total cache size: {1} bytes", name, cacheSize)),68 add(new JLabel(tr("{0} cache, total cache size: {1}", name, sizeString)), 66 69 GBC.eol().insets(5, 5, 0, 0)); 67 70 add(new JScrollPane(getTableForCache(cache, tableModel)),
Note:
See TracChangeset
for help on using the changeset viewer.