Changeset 4288 in josm
- Timestamp:
- 2011-08-07T21:27:38+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r4190 r4288 85 85 import org.openstreetmap.josm.tools.PlatformHookWindows; 86 86 import org.openstreetmap.josm.tools.Shortcut; 87 import org.openstreetmap.josm.tools.Utils; 87 88 88 89 abstract public class Main { … … 823 824 private static void fireProjectionChanged(Projection oldValue, Projection newValue) { 824 825 if (newValue == null ^ oldValue == null 825 || (newValue != null && oldValue != null && ! newValue.getClass().getName().equals(oldValue.getClass().getName()))) {826 || (newValue != null && oldValue != null && !Utils.equal(newValue.toCode(), oldValue.toCode()))) { 826 827 827 828 synchronized(Main.class) { -
trunk/src/org/openstreetmap/josm/data/projection/Lambert.java
r4285 r4288 86 86 InputStream is = Main.class.getResourceAsStream("/data/"+gridFileName); 87 87 if (is == null) { 88 throw new RuntimeException(tr(" Warning: failed to open input stream for resource ''/data/{0}''. Cannot load NTF<->RGF93 grid", gridFileName));88 throw new RuntimeException(tr("Error: failed to open input stream for resource ''/data/{0}''. Cannot load NTF<->RGF93 grid", gridFileName)); 89 89 } 90 90 ntf_rgf93Grid = new NTV2GridShiftFile(); -
trunk/src/org/openstreetmap/josm/data/projection/LambertCC9Zones.java
r4285 r4288 145 145 146 146 @Override 147 public void setPreferences(Collection<String> args) 148 { 147 public void setPreferences(Collection<String> args) { 149 148 int layoutZone = DEFAULT_ZONE; 150 149 if (args != null) { -
trunk/src/org/openstreetmap/josm/data/projection/Projection.java
r3872 r4288 38 38 39 39 /** 40 * Return projection code. 40 * Return projection code. This should be a unique identifier. 41 * If projection supports parameters, return a different code 42 * for each set of parameters. 43 * 44 * The EPSG code can be used (if defined for the projection). 41 45 */ 42 46 String toCode();
Note:
See TracChangeset
for help on using the changeset viewer.