Changeset 6360 in josm
- Timestamp:
- 2013-11-02T23:47:36+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyHelper.java
r5909 r6360 24 24 class ImproveWayAccuracyHelper { 25 25 26 private ImproveWayAccuracyHelper() { 27 // Hide default constructor for utils classes 28 } 29 26 30 /** 27 31 * Finds the way to work on. If the mouse is on the node, extracts one of -
trunk/src/org/openstreetmap/josm/corrector/ReverseWayNoTagCorrector.java
r6264 r6360 25 25 public class ReverseWayNoTagCorrector { 26 26 27 private ReverseWayNoTagCorrector() { 28 // Hide default constructor for utils classes 29 } 30 27 31 /** 28 32 * Tags that imply a semantic meaning from the way direction and cannot be changed. -
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r6316 r6360 56 56 */ 57 57 public class CustomConfigurator { 58 59 private CustomConfigurator() { 60 // Hide default constructor for utils classes 61 } 62 58 63 private static StringBuilder summary = new StringBuilder(); 59 64 -
trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java
r6296 r6360 2 2 package org.openstreetmap.josm.data.coor; 3 3 4 public class QuadTiling 5 { 4 public class QuadTiling { 5 6 private QuadTiling() { 7 // Hide default constructor for utils classes 8 } 9 6 10 public static final int NR_LEVELS = 24; 7 11 public static final double WORLD_PARTS = (1 << NR_LEVELS); -
trunk/src/org/openstreetmap/josm/data/osm/FilterWorker.java
r5442 r6360 13 13 */ 14 14 public class FilterWorker { 15 16 private FilterWorker() { 17 // Hide default constructor for utils classes 18 } 19 15 20 /** 16 21 * Apply the filters to the primitives of the data set. -
trunk/src/org/openstreetmap/josm/data/osm/OsmUtils.java
r6316 r6360 8 8 9 9 public class OsmUtils { 10 11 private OsmUtils() { 12 // Hide default constructor for utils classes 13 } 10 14 11 15 static List<String> TRUE_VALUES = new ArrayList<String>(Arrays -
trunk/src/org/openstreetmap/josm/data/osm/TigerUtils.java
r6264 r6360 9 9 * 10 10 * @author daveh 11 * 11 * @since 529 12 12 */ 13 13 public class TigerUtils { 14 15 private TigerUtils() { 16 // Hide default constructor for utils classes 17 } 14 18 15 public static boolean isTigerTag(String tag) 16 { 19 /** 20 * Determines if the given tag is a TIGER one 21 * @param tag The tag to check 22 * @return {@code true} if {@code tag} starts with {@code tiger:} namespace 23 */ 24 public static boolean isTigerTag(String tag) { 17 25 if (tag.indexOf("tiger:") == -1) 18 26 return false; -
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r6268 r6360 41 41 public class Projections { 42 42 43 private Projections() { 44 // Hide default constructor for utils classes 45 } 46 43 47 public static EastNorth project(LatLon ll) { 44 48 if (ll == null) return null; -
trunk/src/org/openstreetmap/josm/data/validation/util/ValUtil.java
r3707 r6360 19 19 * @author frsantos 20 20 */ 21 public class ValUtil 22 { 21 public class ValUtil { 22 23 private ValUtil() { 24 // Hide default constructor for utils classes 25 } 26 23 27 /** 24 28 * Returns the start and end cells of a way. -
trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java
r6084 r6360 36 36 public class HelpAwareOptionPane { 37 37 38 private HelpAwareOptionPane() { 39 // Hide default constructor for utils classes 40 } 41 38 42 public static class ButtonSpec { 39 43 public final String text; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSortUtils.java
r5630 r6360 13 13 class RelationSortUtils { 14 14 15 private RelationSortUtils() { 16 // Hide default constructor for utils classes 17 } 18 15 19 /** 16 20 * determine, if the way i is a roundabout and if yes, what type of roundabout -
trunk/src/org/openstreetmap/josm/gui/help/HelpUtil.java
r6296 r6360 18 18 public class HelpUtil { 19 19 20 private HelpUtil() { 21 // Hide default constructor for utils classes 22 } 23 20 24 /** 21 25 * Replies the base wiki URL. -
trunk/src/org/openstreetmap/josm/gui/layer/JumpToMarkerActions.java
r6261 r6360 21 21 void jumpToNextMarker(); 22 22 void jumpToPreviousMarker(); 23 } 24 25 private JumpToMarkerActions() { 26 // Hide default constructor for utils classes 23 27 } 24 28 -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r6289 r6360 44 44 public static ElemStyles getStyles() { 45 45 return styles; 46 } 47 48 private MapPaintStyles() { 49 // Hide default constructor for utils classes 46 50 } 47 51 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/CSSColors.java
r3848 r6360 163 163 } 164 164 165 /** 166 * Returns the CSS color for the given key 167 * @param key The key to find 168 * @return The color for {@code key} 169 */ 165 170 public static Color get(String key) { 166 171 return CSS_COLORS.get(key); 167 172 } 173 174 private CSSColors() { 175 // Hide default constructor for utils classes 176 } 168 177 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r6248 r6360 74 74 } 75 75 } 76 77 private ExpressionFactory() { 78 // Hide default constructor for utils classes 79 } 76 80 77 81 public static class Functions { -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetReader.java
r6316 r6360 31 31 public final class TaggingPresetReader { 32 32 33 /** 34 * Constructs a new {@code TaggingPresetReader}. 35 */ 36 public TaggingPresetReader() { 33 private TaggingPresetReader() { 34 // Hide default constructor for utils classes 37 35 } 38 36 -
trunk/src/org/openstreetmap/josm/io/MessageNotifier.java
r6349 r6360 37 37 public final class MessageNotifier { 38 38 39 private MessageNotifier() { 40 // Hide default constructor for utils classes 41 } 42 39 43 /** Property defining if this task is enabled or not */ 40 44 public static final BooleanProperty PROP_NOTIFIER_ENABLED = new BooleanProperty("message.notifier.enabled", true); -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r6340 r6360 118 118 }); 119 119 } 120 121 private PluginHandler() { 122 // Hide default constructor for utils classes 123 } 120 124 121 125 /** -
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.