Changeset 138 in josm for src/org/openstreetmap/josm/gui/dialogs
- Timestamp:
- 2006-09-09T00:18:24+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r129 r138 96 96 String key = data.getValueAt(row, 0).toString(); 97 97 Collection<OsmPrimitive> sel = Main.ds.getSelected(); 98 if (sel.isEmpty()) { 99 JOptionPane.showMessageDialog(Main.parent, tr("Please select the objects you want to change properties for.")); 100 return; 101 } 98 102 String msg = "<html>"+trn("This will change {0} object.", "This will change {0} objects.", sel.size(), sel.size())+"<br><br> "+tr("Please select a new value for \"{0}\".<br>(Empty string deletes the key.)", key)+"</html>"; 99 103 final JComboBox combo = (JComboBox)data.getValueAt(row, 1); … … 144 148 void add() { 145 149 Collection<OsmPrimitive> sel = Main.ds.getSelected(); 150 if (sel.isEmpty()) { 151 JOptionPane.showMessageDialog(Main.parent, tr("Please select objects for which you want to change properties.")); 152 return; 153 } 146 154 147 155 JPanel p = new JPanel(new BorderLayout());
Note:
See TracChangeset
for help on using the changeset viewer.