- Timestamp:
- 2009-09-20T11:05:58+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r2141 r2165 17 17 18 18 import org.openstreetmap.josm.data.SelectionChangedListener; 19 import org.openstreetmap.josm.data.osm.QuadBuckets; 19 20 20 21 /** … … 38 39 * conversion of the whole DataSet by iterating over this data structure. 39 40 */ 40 public Collection<Node> nodes = new LinkedList<Node>();41 public Collection<Node> nodes = new QuadBuckets(); 41 42 42 43 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java
r2039 r2165 879 879 protected void setParticipatingInSynchronizedScrolling(Adjustable adjustable, boolean isParticipating) { 880 880 if (adjustable == null) 881 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "adjustable"));881 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "adjustable")); 882 882 883 883 if (! synchronizedAdjustables.contains(adjustable)) … … 920 920 protected void adapt(final JCheckBox view, final Adjustable adjustable) throws IllegalArgumentException, IllegalStateException { 921 921 if (adjustable == null) 922 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "adjustable"));922 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "adjustable")); 923 923 if (view == null) 924 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "view"));924 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "view")); 925 925 926 926 if (! synchronizedAdjustables.contains(adjustable)) { -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergeModel.java
r2070 r2165 31 31 public void populate(Way my, Way their) { 32 32 if (my == null) 33 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "my"));33 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "my")); 34 34 if (their == null) 35 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "their"));35 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "their")); 36 36 getMergedEntries().clear(); 37 37 getMyEntries().clear(); … … 65 65 public WayNodesConflictResolverCommand buildResolveCommand(Way my, Way their) { 66 66 if (my == null) 67 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "my"));67 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "my")); 68 68 if (their == null) 69 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "their"));69 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "their")); 70 70 if (! isFrozen()) 71 71 throw new IllegalArgumentException(tr("Merged nodes not frozen yet. Can't build resolution command")); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberListMergeModel.java
r2083 r2165 71 71 public void populate(Relation my, Relation their) { 72 72 if (my == null) 73 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "my"));73 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "my")); 74 74 if (their == null) 75 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "their"));75 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "their")); 76 76 77 77 getMergedEntries().clear(); … … 114 114 public RelationMemberConflictResolverCommand buildResolveCommand(Relation my, Relation their) { 115 115 if (my == null) 116 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "my"));116 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "my")); 117 117 if (their == null) 118 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "their"));118 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "their")); 119 119 if (! isFrozen()) 120 120 throw new IllegalArgumentException(tr("merged nodes not frozen yet. Can't build resolution command")); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeItem.java
r1954 r2165 31 31 public TagMergeItem(String key, String myTagValue, String theirTagValue) { 32 32 if (key == null) { 33 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "key"));33 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "key")); 34 34 } 35 35 this.key = key; … … 50 50 */ 51 51 public TagMergeItem(String key, OsmPrimitive my, OsmPrimitive their) { 52 if (key == null) throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "key"));53 if (my == null) throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "my"));54 if (their == null) throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "their"));52 if (key == null) throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "key")); 53 if (my == null) throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "my")); 54 if (their == null) throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "their")); 55 55 this.key = key; 56 56 myTagValue = my.get(key); … … 66 66 */ 67 67 public void decide(MergeDecisionType decision) throws IllegalArgumentException { 68 if (decision == null) throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "decision"));68 if (decision == null) throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "decision")); 69 69 this.mergeDecision = decision; 70 70 } … … 96 96 */ 97 97 public void applyToMyPrimitive(OsmPrimitive primitive) throws IllegalArgumentException, IllegalStateException { 98 if (primitive == null) throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "primitive"));98 if (primitive == null) throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "primitive")); 99 99 if (mergeDecision == MergeDecisionType.UNDECIDED) { 100 100 throw new IllegalStateException(tr("cannot apply undecided tag merge item")); -
trunk/src/org/openstreetmap/josm/gui/history/AdjustmentSynchronizer.java
r1709 r2165 76 76 protected void setParticipatingInSynchronizedScrolling(Adjustable adjustable, boolean isParticipating) { 77 77 if (adjustable == null) 78 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "adjustable"));78 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "adjustable")); 79 79 80 80 if (! synchronizedAdjustables.contains(adjustable)) … … 117 117 protected void adapt(final JCheckBox view, final Adjustable adjustable) throws IllegalArgumentException, IllegalStateException { 118 118 if (adjustable == null) 119 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "adjustable"));119 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "adjustable")); 120 120 if (view == null) 121 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "view"));121 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "view")); 122 122 123 123 if (! synchronizedAdjustables.contains(adjustable)) { -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r2135 r2165 132 132 protected OsmApi(String serverUrl) { 133 133 if (serverUrl == null) 134 throw new IllegalArgumentException(tr("parameter ' {0}' must not be null", "serverUrl"));134 throw new IllegalArgumentException(tr("parameter ''{0}'' must not be null", "serverUrl")); 135 135 this.serverUrl = serverUrl; 136 136 }
Note:
See TracChangeset
for help on using the changeset viewer.