Changeset 7082 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
- Timestamp:
- 2014-05-09T05:32:37+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r7025 r7082 26 26 import java.net.MalformedURLException; 27 27 import java.net.URL; 28 import java.nio.charset.StandardCharsets; 28 29 import java.util.ArrayList; 29 30 import java.util.Arrays; … … 124 125 this.sourceType = sourceType; 125 126 this.canEnable = sourceType.equals(SourceType.MAP_PAINT_STYLE) || sourceType.equals(SourceType.TAGCHECKER_RULE); 126 127 127 128 DefaultListSelectionModel selectionModel = new DefaultListSelectionModel(); 128 129 this.availableSourcesModel = new AvailableSourcesListModel(selectionModel); … … 718 719 fileChooser.setMargin(new Insets(0, 0, 0, 0)); 719 720 p.add(fileChooser, GBC.eol().insets(0, 0, 5, 5)); 720 721 721 722 if (e != null) { 722 723 if (e.title != null) { … … 1212 1213 static class SourceEntryListCellRenderer extends JLabel implements ListCellRenderer<ExtendedSourceEntry> { 1213 1214 @Override 1214 public Component getListCellRendererComponent(JList<? extends ExtendedSourceEntry> list, ExtendedSourceEntry value, 1215 public Component getListCellRendererComponent(JList<? extends ExtendedSourceEntry> list, ExtendedSourceEntry value, 1215 1216 int index, boolean isSelected, boolean cellHasFocus) { 1216 1217 String s = value.toString(); … … 1280 1281 1281 1282 MirroredInputStream stream = new MirroredInputStream(url); 1282 reader = new BufferedReader(new InputStreamReader(stream, Utils.UTF_8));1283 reader = new BufferedReader(new InputStreamReader(stream, StandardCharsets.UTF_8)); 1283 1284 1284 1285 String line; … … 1605 1606 } 1606 1607 } 1607 1608 1608 1609 /** 1609 1610 * Defers loading of sources to the first time the adequate tab is selected.
Note:
See TracChangeset
for help on using the changeset viewer.