Changeset 13434 in josm for trunk/src/org/openstreetmap/josm/gui/MapStatus.java
- Timestamp:
- 2018-02-18T05:02:23+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r13178 r13434 327 327 boolean middleMouseDown = (ms.modifiers & MouseEvent.BUTTON2_DOWN_MASK) != 0; 328 328 329 ds = mv.getLayerManager().get EditDataSet();329 ds = mv.getLayerManager().getActiveDataSet(); 330 330 if (ds != null) { 331 331 // This is not perfect, if current dataset was changed during execution, the lock would be useless … … 512 512 */ 513 513 private void popupCycleSelection(Collection<OsmPrimitive> osms, int mods) { 514 DataSet ds = MainApplication.getLayerManager().get EditDataSet();514 DataSet ds = MainApplication.getLayerManager().getActiveDataSet(); 515 515 // Find some items that are required for cycling through 516 516 OsmPrimitive firstItem = null; … … 603 603 */ 604 604 private void popupSetLabelColors(JLabel lbl, OsmPrimitive osm) { 605 DataSet ds = MainApplication.getLayerManager().get EditDataSet();605 DataSet ds = MainApplication.getLayerManager().getActiveDataSet(); 606 606 if (ds.isSelected(osm)) { 607 607 lbl.setBackground(SystemColor.textHighlight); … … 676 676 @Override 677 677 public void mouseClicked(MouseEvent e) { 678 DataSet ds = MainApplication.getLayerManager().get EditDataSet();678 DataSet ds = MainApplication.getLayerManager().getActiveDataSet(); 679 679 // Let the user toggle the selection 680 680 ds.toggleSelected(osm);
Note:
See TracChangeset
for help on using the changeset viewer.