Changeset 1626 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-05-29T10:47:02+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/conflict
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/ConflictResolver.java
r1622 r1626 91 91 } 92 92 93 @Override94 93 public void propertyChange(PropertyChangeEvent evt) { 95 94 … … 119 118 } 120 119 121 122 120 public void populate(OsmPrimitive my, OsmPrimitive their) { 123 121 this.my = my; … … 133 131 } 134 132 } 135 136 137 133 138 134 public Command buildResolveCommand() { -
trunk/src/org/openstreetmap/josm/gui/conflict/nodes/NodeListMerger.java
r1622 r1626 387 387 setEnabled(false); 388 388 } 389 @Override 389 390 390 public void actionPerformed(ActionEvent arg0) { 391 391 int [] rows = myNodes.getSelectedRows(); … … 393 393 } 394 394 395 @Override396 395 public void valueChanged(ListSelectionEvent e) { 397 396 setEnabled(!myNodes.getSelectionModel().isSelectionEmpty()); … … 415 414 setEnabled(false); 416 415 } 417 @Override 416 418 417 public void actionPerformed(ActionEvent arg0) { 419 418 int [] rows = myNodes.getSelectedRows(); … … 421 420 } 422 421 423 @Override424 422 public void valueChanged(ListSelectionEvent e) { 425 423 setEnabled(!myNodes.getSelectionModel().isSelectionEmpty()); … … 443 441 setEnabled(false); 444 442 } 445 @Override 443 446 444 public void actionPerformed(ActionEvent arg0) { 447 445 int [] myRows = myNodes.getSelectedRows(); … … 454 452 } 455 453 456 @Override457 454 public void valueChanged(ListSelectionEvent e) { 458 455 setEnabled( … … 479 476 setEnabled(false); 480 477 } 481 @Override 478 482 479 public void actionPerformed(ActionEvent arg0) { 483 480 int [] myRows = myNodes.getSelectedRows(); … … 490 487 } 491 488 492 @Override493 489 public void valueChanged(ListSelectionEvent e) { 494 490 setEnabled( … … 511 507 setEnabled(false); 512 508 } 513 @Override 509 514 510 public void actionPerformed(ActionEvent arg0) { 515 511 int [] rows = theirNodes.getSelectedRows(); … … 517 513 } 518 514 519 @Override520 515 public void valueChanged(ListSelectionEvent e) { 521 516 setEnabled(!theirNodes.getSelectionModel().isSelectionEmpty()); … … 535 530 setEnabled(false); 536 531 } 537 @Override 532 538 533 public void actionPerformed(ActionEvent arg0) { 539 534 int [] rows = theirNodes.getSelectedRows(); … … 541 536 } 542 537 543 @Override544 538 public void valueChanged(ListSelectionEvent e) { 545 539 setEnabled(!theirNodes.getSelectionModel().isSelectionEmpty()); … … 558 552 setEnabled(false); 559 553 } 560 @Override 554 561 555 public void actionPerformed(ActionEvent arg0) { 562 556 int [] myRows = theirNodes.getSelectedRows(); … … 569 563 } 570 564 571 @Override572 565 public void valueChanged(ListSelectionEvent e) { 573 566 setEnabled( … … 590 583 setEnabled(false); 591 584 } 592 @Override 585 593 586 public void actionPerformed(ActionEvent arg0) { 594 587 int [] myRows = theirNodes.getSelectedRows(); … … 601 594 } 602 595 603 @Override604 596 public void valueChanged(ListSelectionEvent e) { 605 597 setEnabled( … … 622 614 setEnabled(false); 623 615 } 624 @Override 616 625 617 public void actionPerformed(ActionEvent arg0) { 626 618 int [] rows = mergedNodes.getSelectedRows(); … … 628 620 } 629 621 630 @Override631 622 public void valueChanged(ListSelectionEvent e) { 632 623 int [] rows = mergedNodes.getSelectedRows(); … … 650 641 setEnabled(false); 651 642 } 652 @Override 643 653 644 public void actionPerformed(ActionEvent arg0) { 654 645 int [] rows = mergedNodes.getSelectedRows(); … … 656 647 } 657 648 658 @Override659 649 public void valueChanged(ListSelectionEvent e) { 660 650 int [] rows = mergedNodes.getSelectedRows(); … … 678 668 setEnabled(false); 679 669 } 680 @Override 670 681 671 public void actionPerformed(ActionEvent arg0) { 682 672 int [] rows = mergedNodes.getSelectedRows(); … … 684 674 } 685 675 686 @Override687 676 public void valueChanged(ListSelectionEvent e) { 688 677 int [] rows = mergedNodes.getSelectedRows(); … … 705 694 putValue(Action.NAME, tr("Freeze")); 706 695 putValue(Action.SHORT_DESCRIPTION, tr("Freeze the current list of merged nodes.")); 707 putValue(Action.SELECTED_KEY, false);696 // putValue(Action.SELECTED_KEY, false); 708 697 setEnabled(true); 709 698 710 699 } 711 @Override 700 712 701 public void actionPerformed(ActionEvent arg0) { 713 702 int [] rows = mergedNodes.getSelectedRows(); … … 715 704 } 716 705 717 @Override718 706 public void itemStateChanged(ItemEvent e) { 719 707 int state = e.getStateChange(); … … 737 725 mergedNodes.getSelectionModel().clearSelection(); 738 726 mergedNodes.setEnabled(!newValue); 739 freezeAction.putValue(Action.SELECTED_KEY, newValue); 740 } 741 742 @Override 727 // freezeAction.putValue(Action.SELECTED_KEY, newValue); 728 } 729 743 730 public void propertyChange(PropertyChangeEvent evt) { 744 731 if (evt.getPropertyName().equals(NodeListMergeModel.PROP_FROZEN)) { … … 751 738 return model; 752 739 } 753 754 755 756 740 } -
trunk/src/org/openstreetmap/josm/gui/conflict/nodes/NodeListTableCellRenderer.java
r1622 r1626 95 95 } 96 96 97 @Override98 97 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, 99 98 int row, int column) { … … 104 103 return this; 105 104 } 106 107 105 } -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagMergeTableCellRenderer.java
r1622 r1626 22 22 } 23 23 24 25 @Override26 24 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, 27 25 int col) { … … 38 36 default: 39 37 // should not happen, but just in case 40 throw new IllegalArgumentException(tr(" parameter 'col' must be 0 or 1. Got " +col));38 throw new IllegalArgumentException(tr("Parameter 'col' must be 0 or 1. Got {0}", col)); 41 39 } 42 40 return this; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagMerger.java
r1622 r1626 36 36 AdjustmentSynchronizer adjustmentSynchronizer; 37 37 38 39 40 38 protected JScrollPane embeddInScrollPane(JTable table) { 41 39 JScrollPane pane = new JScrollPane(table); … … 67 65 } 68 66 69 70 67 protected JScrollPane buildUndecidedTable() { 71 68 undecidedTable = new JTable( … … 78 75 } 79 76 80 81 77 protected void build() { 82 78 GridBagConstraints gc = new GridBagConstraints(); … … 195 191 } 196 192 197 198 193 public TagMerger() { 199 194 model = new TagMergeModel(); … … 205 200 return model; 206 201 } 207 208 202 209 203 protected ImageIcon loadIcon(String name) { … … 232 226 } 233 227 234 @Override235 228 public void actionPerformed(ActionEvent arg0) { 236 229 int rows[] = mineTable.getSelectedRows(); … … 241 234 } 242 235 243 @Override244 236 public void valueChanged(ListSelectionEvent e) { 245 237 setEnabled(mineTable.getSelectedRowCount() > 0); … … 261 253 } 262 254 263 @Override264 255 public void actionPerformed(ActionEvent arg0) { 265 256 int rows[] = theirTable.getSelectedRows(); … … 270 261 } 271 262 272 @Override273 263 public void valueChanged(ListSelectionEvent e) { 274 264 setEnabled(theirTable.getSelectedRowCount() > 0); 275 265 } 276 266 } 277 278 267 279 268 class AdjustmentSynchronizer implements AdjustmentListener { … … 295 284 } 296 285 297 @Override298 286 public void adjustmentValueChanged(AdjustmentEvent e) { 299 287 for (Adjustable a : synchronizedAdjustables) { … … 305 293 } 306 294 307 308 295 class DoubleClickAdapter extends MouseAdapter { 309 296 310 @Override311 297 public void mouseClicked(MouseEvent e) { 312 298 if (e.getClickCount() != 2) { … … 335 321 } 336 322 337 338 339 340 323 class UndecideAction extends AbstractAction implements ListSelectionListener { 341 324 … … 352 335 } 353 336 354 @Override355 337 public void actionPerformed(ActionEvent arg0) { 356 338 int rows[] = undecidedTable.getSelectedRows(); … … 361 343 } 362 344 363 @Override364 345 public void valueChanged(ListSelectionEvent e) { 365 346 setEnabled(undecidedTable.getSelectedRowCount() > 0); 366 347 } 367 348 } 368 369 349 }
Note:
See TracChangeset
for help on using the changeset viewer.