Changeset 5360 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2012-07-25T00:33:41+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java
r4459 r5360 127 127 Main.main.getEditLayer().data.addDataSetListener(inActiveDataLayerModel); 128 128 inActiveDataLayerModel.initFromDataSet(Main.main.getEditLayer().data); 129 inSelectionModel.initFromPrimitives(Main.main.getEditLayer().data.get Selected());129 inSelectionModel.initFromPrimitives(Main.main.getEditLayer().data.getAllSelected()); 130 130 } 131 131 } … … 234 234 protected void initWithCurrentData() { 235 235 if (Main.main.getEditLayer() != null) { 236 inSelectionModel.initFromPrimitives(Main.main.getEditLayer().data.get Selected());236 inSelectionModel.initFromPrimitives(Main.main.getEditLayer().data.getAllSelected()); 237 237 inActiveDataLayerModel.initFromDataSet(Main.main.getEditLayer().data); 238 238 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
r5200 r5360 121 121 model.selectionChanged(null); 122 122 } else { 123 model.selectionChanged(Main.main.getCurrentDataSet().get Selected());123 model.selectionChanged(Main.main.getCurrentDataSet().getAllSelected()); 124 124 } 125 125 } … … 197 197 if (Main.main.getCurrentDataSet() == null) 198 198 return; 199 for (OsmPrimitive primitive: Main.main.getCurrentDataSet().get Selected()) {199 for (OsmPrimitive primitive: Main.main.getCurrentDataSet().getAllSelected()) { 200 200 if (primitive.isNew()) { 201 201 continue; -
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java
r5328 r5360 319 319 320 320 protected void createMapPaintText() { 321 final Collection<OsmPrimitive> sel = Main.main.getCurrentDataSet().get Selected();321 final Collection<OsmPrimitive> sel = Main.main.getCurrentDataSet().getAllSelected(); 322 322 ElemStyles elemstyles = MapPaintStyles.getStyles(); 323 323 NavigatableComponent nc = Main.map.mapView; -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r5266 r5360 161 161 model.editLayerChanged(null, Main.map.mapView.getEditLayer()); 162 162 if (Main.map.mapView.getEditLayer() != null) { 163 model.setJOSMSelection(Main.map.mapView.getEditLayer().data.get Selected());163 model.setJOSMSelection(Main.map.mapView.getEditLayer().data.getAllSelected()); 164 164 } 165 165 actSearch.updateEnabledState(); … … 664 664 } else { 665 665 history = newLayer.data.getSelectionHistory(); 666 setJOSMSelection(newLayer.data.get Selected());666 setJOSMSelection(newLayer.data.getAllSelected()); 667 667 } 668 668 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java
r4982 r5360 136 136 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 137 137 if (newLayer instanceof OsmDataLayer) { 138 refresh(((OsmDataLayer) newLayer).data.get Selected());138 refresh(((OsmDataLayer) newLayer).data.getAllSelected()); 139 139 } else { 140 140 refresh(null); … … 165 165 Layer layer = Main.main.getActiveLayer(); 166 166 if (layer instanceof OsmDataLayer) { 167 refresh(((OsmDataLayer)layer).data.get Selected());167 refresh(((OsmDataLayer)layer).data.getAllSelected()); 168 168 } 169 169 … … 275 275 Layer layer = Main.main.getActiveLayer(); 276 276 if (layer instanceof OsmDataLayer) { 277 refresh(((OsmDataLayer)layer).data.get Selected());277 refresh(((OsmDataLayer)layer).data.getAllSelected()); 278 278 } 279 279 setEnabled(false); … … 390 390 users.add(data.get(index).user); 391 391 } 392 Collection<OsmPrimitive> selected = Main.main.getCurrentDataSet().get Selected();392 Collection<OsmPrimitive> selected = Main.main.getCurrentDataSet().getAllSelected(); 393 393 Collection<OsmPrimitive> byUser = new LinkedList<OsmPrimitive>(); 394 394 for (OsmPrimitive p : selected) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r5287 r5360 168 168 DataSet ds = Main.main.getCurrentDataSet(); 169 169 if (ds != null) { 170 updateSelection(ds.get Selected());170 updateSelection(ds.getAllSelected()); 171 171 } 172 172 MapView.addLayerChangeListener(this); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetInSelectionListModel.java
r3083 r5360 30 30 setChangesets(null); 31 31 } else { 32 initFromPrimitives((newLayer).data.get Selected());32 initFromPrimitives((newLayer).data.getAllSelected()); 33 33 } 34 34 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/SelectionTableModel.java
r3416 r5360 64 64 } 65 65 if (newLayer == layer) { 66 cache.addAll(((OsmDataLayer)newLayer).data.get Selected());66 cache.addAll(((OsmDataLayer)newLayer).data.getAllSelected()); 67 67 } 68 68 fireTableDataChanged(); … … 102 102 */ 103 103 protected void populateSelectedPrimitives(OsmDataLayer layer) { 104 selectionChanged(layer.data.get Selected());104 selectionChanged(layer.data.getAllSelected()); 105 105 } 106 106
Note:
See TracChangeset
for help on using the changeset viewer.