Changeset 2846 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties
- Timestamp:
- 2010-01-13T20:12:10+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMergeModel.java
r2612 r2846 4 4 import static org.openstreetmap.josm.gui.conflict.pair.MergeDecisionType.UNDECIDED; 5 5 import static org.openstreetmap.josm.tools.I18n.tr; 6 import static org.openstreetmap.josm.tools.I18n.trn; 6 7 7 8 import java.beans.PropertyChangeListener; … … 31 32 import org.openstreetmap.josm.io.MultiFetchServerObjectReader; 32 33 import org.openstreetmap.josm.io.OsmTransferException; 34 import org.openstreetmap.josm.tools.CheckParameterUtil; 33 35 34 36 /** … … 292 294 */ 293 295 public void decideDeletedStateConflict(MergeDecisionType decision) throws IllegalArgumentException{ 294 if (decision == null) 295 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "decision")); 296 CheckParameterUtil.ensureParameterNotNull(decision, "decision"); 296 297 this.deletedMergeDecision = decision; 297 298 setChanged(); … … 307 308 */ 308 309 public void decideVisibleStateConflict(MergeDecisionType decision) throws IllegalArgumentException { 309 if (decision == null) 310 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "decision")); 310 CheckParameterUtil.ensureParameterNotNull(decision, "decision"); 311 311 this.visibleMergeDecision = decision; 312 312 setChanged(); … … 468 468 int ret = JOptionPane.showOptionDialog( 469 469 Main.parent, 470 tr("<html>There are {0} additional nodes used by way {1}<br>" 471 + "which are deleted on the server.<br>" 472 + "<br>" 473 + "Do you want to undelete these nodes too?</html>", 474 Long.toString(dependent.size()), Long.toString(way.getId())), 475 tr("Undelete additional nodes?"), 476 JOptionPane.YES_NO_OPTION, 477 JOptionPane.QUESTION_MESSAGE, 478 null, 479 options, 480 options[0] 470 "<html>" + trn("There is {0} additional node used by way {1}<br>" 471 + "which is deleted on the server." 472 + "<br><br>" 473 + "Do you want to undelete this node too?", 474 "There are {0} additional nodes used by way {1}<br>" 475 + "which are deleted on the server." 476 + "<br><br>" 477 + "Do you want to undelete these nodes too?", 478 dependent.size(), dependent.size(), way.getId()) 479 + "</html>", 480 tr("Undelete additional nodes?"), 481 JOptionPane.YES_NO_OPTION, 482 JOptionPane.QUESTION_MESSAGE, 483 null, 484 options, 485 options[0] 481 486 ); 482 487 … … 497 502 int ret = JOptionPane.showOptionDialog( 498 503 Main.parent, 499 tr("<html>There are {0} additional primitives referred to by relation {1}<br>" 500 + "which are deleted on the server.<br>" 501 + "<br>" 502 + "Do you want to undelete them too?</html>", 503 Long.toString(dependent.size()), Long.toString(r.getId())), 504 tr("Undelete dependent primitives?"), 505 JOptionPane.YES_NO_OPTION, 506 JOptionPane.QUESTION_MESSAGE, 507 null, 508 options, 509 options[0] 504 "<html>" + trn("There is {0} additional primitive referred to by relation {1}<br>" 505 + "which is deleted on the server." 506 + "<br><br>" 507 + "Do you want to undelete this too?", 508 "There are {0} additional primitives referred to by relation {1}<br>" 509 + "which are deleted on the server." 510 + "<br><br>" 511 + "Do you want to undelete these too?", 512 dependent.size(), dependent.size(), r.getId()) 513 + "</html>", 514 tr("Undelete dependent primitives?"), 515 JOptionPane.YES_NO_OPTION, 516 JOptionPane.QUESTION_MESSAGE, 517 null, 518 options, 519 options[0] 510 520 ); 511 521
Note:
See TracChangeset
for help on using the changeset viewer.