Ignore:
Timestamp:
2017-10-29T22:32:04+01:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 13007

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  
    7272    public static List<String> loadURLList() {
    7373        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");
    7575        try (BufferedReader fr = Files.newBufferedReader(f.toPath(), StandardCharsets.UTF_8)) {
    7676            String s;
     
    8585
    8686    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");
    8888        PrintWriter fw = null;
    8989        try {
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/multitagger/MultiTagDialog.java

    r33676 r33742  
    4747import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
    4848import org.openstreetmap.josm.data.osm.search.SearchMode;
    49 import org.openstreetmap.josm.data.preferences.ColorProperty;
     49import org.openstreetmap.josm.data.preferences.NamedColorProperty;
    5050import org.openstreetmap.josm.gui.ExtendedDialog;
    5151import org.openstreetmap.josm.gui.MainApplication;
     
    357357
    358358    class ColoredRenderer extends DefaultTableCellRenderer {
    359         private final Color highlightColor = new ColorProperty(
     359        private final Color highlightColor = new NamedColorProperty(
    360360                marktr("Multitag Background: highlight"), new Color(255, 255, 200)).get();
    361361        @Override
Note: See TracChangeset for help on using the changeset viewer.