Changeset 4148 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2011-06-19T18:35:06+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PresetListPanel.java
r3720 r4148 57 57 } 58 58 public void mouseClicked(MouseEvent arg0) { 59 Collection<OsmPrimitive> selection = presetHandler.getSelection();59 Collection<OsmPrimitive> selection = tag.createSelection(presetHandler.getSelection()); 60 60 if (selection == null || selection.isEmpty()) 61 61 return; -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r4145 r4148 1358 1358 if (Main.main.getCurrentDataSet() == null) return; 1359 1359 1360 Collection<OsmPrimitive> sel = Main.main.getCurrentDataSet().getSelected();1360 Collection<OsmPrimitive> sel = createSelection(Main.main.getCurrentDataSet().getSelected()); 1361 1361 int answer = showDialog(sel, supportsRelation()); 1362 1362 … … 1389 1389 } 1390 1390 1391 public int showDialog(Collection<OsmPrimitive> selection, final boolean showNewRelation) { 1392 Collection<OsmPrimitive> sel = createSelection(selection); 1391 public int showDialog(Collection<OsmPrimitive> sel, final boolean showNewRelation) { 1393 1392 PresetPanel p = createPanel(sel); 1394 1393 if (p == null) … … 1447 1446 * @return Cleaned list with suitable OsmPrimitives only 1448 1447 */ 1449 p rivateCollection<OsmPrimitive> createSelection(Collection<OsmPrimitive> participants) {1448 public Collection<OsmPrimitive> createSelection(Collection<OsmPrimitive> participants) { 1450 1449 originalSelectionEmpty = participants.size() == 0; 1451 1450 Collection<OsmPrimitive> sel = new LinkedList<OsmPrimitive>();
Note:
See TracChangeset
for help on using the changeset viewer.