Changeset 33742 in osm for applications/editors/josm/plugins/utilsplugin2/src
- Timestamp:
- 2017-10-29T22:32:04+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/customurl/URLList.java
r33676 r33742 72 72 public static List<String> loadURLList() { 73 73 ArrayList<String> items = new ArrayList<>(); 74 File f = new File(UtilsPlugin2.getInstance().getPluginDir (), "customurl.txt");74 File f = new File(UtilsPlugin2.getInstance().getPluginDirs().getUserDataDirectory(false), "customurl.txt"); 75 75 try (BufferedReader fr = Files.newBufferedReader(f.toPath(), StandardCharsets.UTF_8)) { 76 76 String s; … … 85 85 86 86 public static void saveURLList(List<String> items) { 87 File f = new File(UtilsPlugin2.getInstance().getPluginDir (), "customurl.txt");87 File f = new File(UtilsPlugin2.getInstance().getPluginDirs().getUserDataDirectory(false), "customurl.txt"); 88 88 PrintWriter fw = null; 89 89 try { -
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/multitagger/MultiTagDialog.java
r33676 r33742 47 47 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 48 48 import org.openstreetmap.josm.data.osm.search.SearchMode; 49 import org.openstreetmap.josm.data.preferences. ColorProperty;49 import org.openstreetmap.josm.data.preferences.NamedColorProperty; 50 50 import org.openstreetmap.josm.gui.ExtendedDialog; 51 51 import org.openstreetmap.josm.gui.MainApplication; … … 357 357 358 358 class ColoredRenderer extends DefaultTableCellRenderer { 359 private final Color highlightColor = new ColorProperty(359 private final Color highlightColor = new NamedColorProperty( 360 360 marktr("Multitag Background: highlight"), new Color(255, 255, 200)).get(); 361 361 @Override
Note:
See TracChangeset
for help on using the changeset viewer.