- Timestamp:
- 2018-06-18T20:29:06+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r13941 r13956 532 532 } else { 533 533 DataSet ds = layerManager.getActiveDataSet(); 534 if (ds == null) return null;534 if (ds == null) return Collections.emptyList(); 535 535 return ds.getSelected(); 536 536 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/AbstractCopyAction.java
r13849 r13956 46 46 Set<String> values = new TreeSet<>(); 47 47 Collection<? extends Tagged> sel = objectSupplier.get(); 48 if (rows.length == 0 || sel .isEmpty()) return;48 if (rows.length == 0 || sel == null || sel.isEmpty()) return; 49 49 50 50 for (int row: rows) { 51 51 String key = keySupplier.apply(row); 52 if (sel.isEmpty())53 return;54 52 for (Tagged p : sel) { 55 53 Collection<String> s = getString(p, key); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r13941 r13956 67 67 import org.openstreetmap.josm.data.osm.IRelationMember; 68 68 import org.openstreetmap.josm.data.osm.Node; 69 import org.openstreetmap.josm.data.osm.OsmData; 69 70 import org.openstreetmap.josm.data.osm.OsmPrimitive; 70 71 import org.openstreetmap.josm.data.osm.Relation; … … 182 183 private final PasteValueAction pasteValueAction = new PasteValueAction(); 183 184 private final CopyValueAction copyValueAction = new CopyValueAction( 184 tagTable, editHelper::getDataKey, Main.main::getInProgress Selection);185 tagTable, editHelper::getDataKey, Main.main::getInProgressISelection); 185 186 private final CopyKeyValueAction copyKeyValueAction = new CopyKeyValueAction( 186 tagTable, editHelper::getDataKey, Main.main::getInProgress Selection);187 tagTable, editHelper::getDataKey, Main.main::getInProgressISelection); 187 188 private final CopyAllKeyValueAction copyAllKeyValueAction = new CopyAllKeyValueAction( 188 tagTable, editHelper::getDataKey, Main.main::getInProgress Selection);189 tagTable, editHelper::getDataKey, Main.main::getInProgressISelection); 189 190 private final SearchAction searchActionSame = new SearchAction(true); 190 191 private final SearchAction searchActionAny = new SearchAction(false); … … 650 651 membershipTable.setVisible(membershipData.getRowCount() > 0); 651 652 652 DataSet ds = Main.main.getActiveDataSet();653 OsmData<?, ?, ?, ?> ds = MainApplication.getLayerManager().getActiveData(); 653 654 boolean isReadOnly = ds != null && ds.isLocked(); 654 655 boolean hasSelection = !newSel.isEmpty();
Note:
See TracChangeset
for help on using the changeset viewer.