Changeset 6360 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2013-11-02T23:47:36+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ColorHelper.java
r3857 r6360 9 9 public class ColorHelper { 10 10 11 private ColorHelper() { 12 // Hide default constructor for utils classes 13 } 14 11 15 public static Color html2color(String html) { 12 16 if (html.length() > 0 && html.charAt(0) == '#') -
trunk/src/org/openstreetmap/josm/tools/ExifReader.java
r6209 r6360 27 27 public class ExifReader { 28 28 29 private ExifReader() { 30 // Hide default constructor for utils classes 31 } 32 29 33 /** 30 34 * Returns the date/time from the given JPEG file. -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r6316 r6360 32 32 */ 33 33 public class I18n { 34 35 private I18n() { 36 // Hide default constructor for utils classes 37 } 38 34 39 private enum PluralMode { MODE_NOTONE, MODE_NONE, MODE_GREATERONE, 35 40 MODE_CS/*, MODE_AR*/, MODE_PL/*, MODE_RO*/, MODE_RU, MODE_SK/*, MODE_SL*/} -
trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java
r6223 r6360 5 5 6 6 public class LanguageInfo { 7 8 private LanguageInfo() { 9 // Hide default constructor for utils classes 10 } 11 7 12 /** 8 13 * Type of the locale to use … … 86 91 else if (full.equals("in")) 87 92 return "id"; 88 else if (I18n.hasCode(full)) / * catch all non-single codes */93 else if (I18n.hasCode(full)) // catch all non-single codes 89 94 return full; 90 95 91 / * return single code */96 // return single code 92 97 return locale.getLanguage(); 93 98 } … … 118 123 } 119 124 120 static public String getLanguageCodeXML() 121 { 125 static public String getLanguageCodeXML() { 122 126 return getJOSMLocaleCode()+"."; 123 127 } 124 static public String getLanguageCodeManifest()125 {128 129 static public String getLanguageCodeManifest() { 126 130 return getJOSMLocaleCode()+"_"; 127 131 } -
trunk/src/org/openstreetmap/josm/tools/OpenBrowser.java
r6299 r6360 22 22 public class OpenBrowser { 23 23 24 private OpenBrowser() { 25 // Hide default constructor for utils classes 26 } 27 24 28 private static void displayUrlFallback(URI uri) throws IOException { 25 29 if (Main.platform == null) -
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r6340 r6360 34 34 protected static final String KEY_PATTERN = Main.pref.get("tags.paste.tag-pattern", "[0-9a-zA-Z:_]*"); 35 35 protected static final int MAX_VALUE_LENGTH = 255; 36 37 private TextTagParser() { 38 // Hide default constructor for utils classes 39 } 36 40 37 41 public static class TextAnalyzer { -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r6354 r6360 47 47 public class Utils { 48 48 49 private Utils() { 50 // Hide default constructor for utils classes 51 } 52 49 53 public static <T> boolean exists(Iterable<? extends T> collection, Predicate<? super T> predicate) { 50 54 for (T item : collection) {
Note:
See TracChangeset
for help on using the changeset viewer.