Changeset 7834 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2014-12-19T15:05:33+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r7434 r7834 79 79 * <li>{@code http://...} a URL. It will be cached on disk.</li></ul> 80 80 * <li>{@code resource://SOME/FILE} file from the classpath (usually in the current *.jar)</li> 81 * <li>{@code josmdir://SOME/FILE} file inside josm config directory (since r7058)</li></ul> 81 * <li>{@code josmdir://SOME/FILE} file inside josm user data directory (since r7058)</li></ul> 82 * <li>{@code josmplugindir://SOME/FILE} file inside josm plugin directory (since r7832)</li></ul> 82 83 */ 83 84 public CachedFile(String name) { … … 92 93 * <li>{@code http://...} a URL. It will be cached on disk.</li></ul> 93 94 * <li>{@code resource://SOME/FILE} file from the classpath (usually in the current *.jar)</li> 94 * <li>{@code josmdir://SOME/FILE} file inside josm config directory (since r7058)</li></ul> 95 * <li>{@code josmdir://SOME/FILE} file inside josm user data directory (since r7058)</li></ul> 96 * <li>{@code josmplugindir://SOME/FILE} file inside josm plugin directory (since r7832)</li></ul> 95 97 * @return this object 96 98 */ … … 206 208 return null; 207 209 } else if (name.startsWith("josmdir://")) { 208 cacheFile = new File(Main.pref.getPreferencesDir(), name.substring("josmdir://".length())); 210 cacheFile = new File(Main.pref.getUserDataDirectory(), name.substring("josmdir://".length())); 211 } else if (name.startsWith("josmplugindir://")) { 212 cacheFile = new File(Main.pref.getPluginsDirectory(), name.substring("josmplugindir://".length())); 209 213 } else { 210 214 cacheFile = new File(name); -
trunk/src/org/openstreetmap/josm/io/GpxExporter.java
r7518 r7834 200 200 201 201 if (enable) { 202 if (copyrightYear.getText(). length()==0) {202 if (copyrightYear.getText().isEmpty()) { 203 203 String sCopyrightYear = data.getString(META_COPYRIGHT_YEAR); 204 204 if (sCopyrightYear == null) { … … 207 207 copyrightYear.setText(sCopyrightYear); 208 208 } 209 if (copyright.getText(). length()==0) {209 if (copyright.getText().isEmpty()) { 210 210 String sCopyright = data.getString(META_COPYRIGHT_LICENSE); 211 211 if (sCopyright == null) { … … 308 308 break; 309 309 } 310 license += license. length()==0? urls[i] : ", "+urls[i];310 license += license.isEmpty() ? urls[i] : ", "+urls[i]; 311 311 } 312 312 copyright.setText(license); -
trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControl.java
r7830 r7834 2 2 package org.openstreetmap.josm.io.remotecontrol; 3 3 4 import java.io.File; 4 5 import java.net.InetAddress; 5 6 import java.net.UnknownHostException; … … 28 29 * @since 7335 29 30 */ 30 public static final BooleanProperty PROP_REMOTECONTROL_HTTPS_ENABLED = new BooleanProperty("remotecontrol.https.enabled", false); 31 public static final BooleanProperty PROP_REMOTECONTROL_HTTPS_ENABLED = new BooleanProperty( 32 "remotecontrol.https.enabled", false); 31 33 32 34 /** … … 72 74 */ 73 75 public static String getRemoteControlDir() { 74 return Main.pref.getPreferencesDir() + "remotecontrol/";76 return new File(Main.pref.getUserDataDirectory(), "remotecontrol").getAbsolutePath(); 75 77 } 76 78
Note:
See TracChangeset
for help on using the changeset viewer.