Changeset 2402 in josm
- Timestamp:
- 2009-11-07T18:01:20+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r2396 r2402 669 669 // 670 670 layer.cleanupAfterUpload(processedPrimitives); 671 layer.data.fireSelectionChanged();672 671 layer.fireDataChange(); 673 672 if (lastException != null) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r2401 r2402 272 272 private void tryAgain(MouseEvent e) { 273 273 getCurrentDataSet().setSelected(); 274 Main.main.getCurrentDataSet().fireSelectionChanged();275 274 mouseClicked(e); 276 275 } … … 545 544 newSelection.add(n); 546 545 ds.setSelected(n); 547 ds.fireSelectionChanged();548 546 } else if (!newNode) { 549 547 title = tr("Connect existing way to node"); … … 590 588 (posn0 < selectedWay.getNodesCount()-1) && targetNode.equals(selectedWay.getNode(posn0+1))) { // next node 591 589 getCurrentDataSet().setSelected(targetNode); 592 getCurrentDataSet().fireSelectionChanged();593 590 lastUsedNode = targetNode; 594 591 return true; -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r2348 r2402 520 520 521 521 // plain clicks with no modifiers clear the selection 522 if (!ctrl && !shift) 522 if (!ctrl && !shift) { 523 523 ds.clearSelection(); 524 } 524 525 525 526 if (ctrl) { … … 527 528 // but Ctrl on an *area* just clears those items 528 529 // out of the selection. 529 if (area) 530 if (area) { 530 531 ds.clearSelection(selectionList); 531 else532 } else { 532 533 ds.toggleSelected(selectionList); 534 } 533 535 } else { 534 536 // This is either a plain click (which means we … … 538 540 ds.addSelected(selectionList); 539 541 } 540 ds.fireSelectionChanged();541 542 Main.map.mapView.repaint(); 542 543 } -
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r2401 r2402 783 783 784 784 public void clenupDeletedPrimitives() { 785 cleanupDeleted(nodes.iterator()); 786 cleanupDeleted(ways.iterator()); 787 cleanupDeleted(relations.iterator()); 788 } 789 790 private void cleanupDeleted(Iterator<? extends OsmPrimitive> it) { 785 if (cleanupDeleted(nodes.iterator()) 786 | cleanupDeleted(ways.iterator()) 787 | cleanupDeleted(relations.iterator())) { 788 fireSelectionChanged(); 789 } 790 } 791 792 private boolean cleanupDeleted(Iterator<? extends OsmPrimitive> it) { 793 boolean changed = false; 791 794 while (it.hasNext()) { 792 if (it.next().isDeleted()) { 795 OsmPrimitive primitive = it.next(); 796 if (primitive.isDeleted()) { 797 selectedPrimitives.remove(primitive); 798 allPrimitives.remove(primitive); 799 changed = true; 793 800 it.remove(); 794 801 } 795 802 } 803 return changed; 796 804 } 797 805 -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r2348 r2402 333 333 } 334 334 } 335 ds.fireSelectionChanged();336 335 } 337 336 -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r2395 r2402 529 529 if (getCurrentDataSet() != null) { 530 530 getCurrentDataSet().setSelected(); 531 getCurrentDataSet().fireSelectionChanged();532 531 } 533 532 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r2381 r2402 518 518 } 519 519 Main.map.mapView.getEditLayer().data.setSelected(selection); 520 Main.map.mapView.getEditLayer().data.fireSelectionChanged();521 520 } 522 521 -
trunk/src/org/openstreetmap/josm/gui/io/UploadLayerTask.java
r2396 r2402 143 143 return; 144 144 layer.cleanupAfterUpload(processedPrimitives); 145 layer.data.fireSelectionChanged();;146 145 layer.fireDataChange(); 147 146 layer.onPostUploadToServer();
Note:
See TracChangeset
for help on using the changeset viewer.