diff --git a/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java b/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
index 3ea58fc..3dd7dcf 100644
|
a
|
b
|
import org.openstreetmap.josm.data.osm.visitor.paint.MapRendererFactory;
|
| 75 | 75 | import org.openstreetmap.josm.data.osm.visitor.paint.Rendering; |
| 76 | 76 | import org.openstreetmap.josm.data.osm.visitor.paint.relations.MultipolygonCache; |
| 77 | 77 | import org.openstreetmap.josm.data.preferences.IntegerProperty; |
| | 78 | import org.openstreetmap.josm.data.preferences.StringProperty; |
| 78 | 79 | import org.openstreetmap.josm.data.projection.Projection; |
| 79 | 80 | import org.openstreetmap.josm.data.validation.TestError; |
| 80 | 81 | import org.openstreetmap.josm.gui.ExtendedDialog; |
| … |
… |
public class OsmDataLayer extends AbstractModifiableLayer implements Listener, S
|
| 127 | 128 | public static final int DEFAULT_RECENT_RELATIONS_NUMBER = 20; |
| 128 | 129 | public static final IntegerProperty PROPERTY_RECENT_RELATIONS_NUMBER = new IntegerProperty("properties.last-closed-relations-size", |
| 129 | 130 | DEFAULT_RECENT_RELATIONS_NUMBER); |
| | 131 | public static final StringProperty PROPERTY_SAVE_EXTENSION = new StringProperty("save.extension.osm", "osm"); |
| | 132 | |
| 130 | 133 | |
| 131 | 134 | /** List of recent relations */ |
| 132 | 135 | private final Map<Relation, Void> recentRelations = new LinkedHashMap<Relation, Void>(PROPERTY_RECENT_RELATIONS_NUMBER.get()+1, 1.1f, true) { |
| … |
… |
public class OsmDataLayer extends AbstractModifiableLayer implements Listener, S
|
| 1006 | 1009 | |
| 1007 | 1010 | @Override |
| 1008 | 1011 | public File createAndOpenSaveFileChooser() { |
| 1009 | | String extension = Main.pref.get("save.extension.osm", "osm"); |
| | 1012 | String extension = PROPERTY_SAVE_EXTENSION.get(); |
| 1010 | 1013 | File file = getAssociatedFile(); |
| 1011 | 1014 | if (file == null && isRenamed()) { |
| 1012 | 1015 | String filename = Main.pref.get("lastDirectory") + '/' + getName(); |