Changeset 2846 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes
- Timestamp:
- 2010-01-13T20:12:10+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergeModel.java
r2512 r2846 14 14 import org.openstreetmap.josm.gui.conflict.pair.ListMergeModel; 15 15 import org.openstreetmap.josm.gui.conflict.pair.ListRole; 16 import org.openstreetmap.josm.tools.CheckParameterUtil; 16 17 17 18 public class NodeListMergeModel extends ListMergeModel<Node>{ … … 29 30 */ 30 31 public void populate(Way my, Way their) { 31 if (my == null) 32 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "my")); 33 if (their == null) 34 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "their")); 32 CheckParameterUtil.ensureParameterNotNull(my, "my"); 33 CheckParameterUtil.ensureParameterNotNull(their, "their"); 35 34 getMergedEntries().clear(); 36 35 getMyEntries().clear(); … … 63 62 */ 64 63 public WayNodesConflictResolverCommand buildResolveCommand(Way my, Way their) { 65 if (my == null) 66 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "my")); 67 if (their == null) 68 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "their")); 64 CheckParameterUtil.ensureParameterNotNull(my, "my"); 65 CheckParameterUtil.ensureParameterNotNull(their, "their"); 69 66 if (! isFrozen()) 70 throw new IllegalArgumentException(tr("Merged nodes not frozen yet. Can 't build resolution command."));67 throw new IllegalArgumentException(tr("Merged nodes not frozen yet. Cannot build resolution command.")); 71 68 return new WayNodesConflictResolverCommand(my, their, getMergedEntries()); 72 69 } -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListTableCellRenderer.java
r2512 r2846 6 6 import java.awt.Color; 7 7 import java.awt.Component; 8 import java.text.MessageFormat; 8 9 import java.util.ArrayList; 9 10 import java.util.Collections; … … 178 179 default: 179 180 // should not happen 180 throw new RuntimeException( tr("Unexpected column index. Got {0}.", column));181 throw new RuntimeException(MessageFormat.format("Unexpected column index. Got {0}.", column)); 181 182 } 182 183 return this;
Note:
See TracChangeset
for help on using the changeset viewer.