Changeset 8444 in josm for trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
- Timestamp:
- 2015-06-02T16:41:37+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
r8379 r8444 117 117 */ 118 118 public AddTagsDialog(String[][] tags, String senderName, Collection<? extends OsmPrimitive> primitives) { 119 super(Main.parent, tr("Add tags to selected objects"), new String[] { tr("Add selected tags"), tr("Add all tags"),tr("Cancel")},119 super(Main.parent, tr("Add tags to selected objects"), new String[] {tr("Add selected tags"), tr("Add all tags"), tr("Cancel")}, 120 120 false, 121 121 true); … … 213 213 if (!sender.isEmpty() && !trustedSenders.contains(sender)) { 214 214 final JCheckBox c = new JCheckBox(); 215 c.setAction(new AbstractAction(tr("Accept all tags from {0} for this session", sender) 215 c.setAction(new AbstractAction(tr("Accept all tags from {0} for this session", sender)) { 216 216 @Override public void actionPerformed(ActionEvent e) { 217 217 if (c.isSelected()) … … 220 220 trustedSenders.remove(sender); 221 221 } 222 } 222 }); 223 223 tablePanel.add(c , GBC.eol().insets(20,10,0,0)); 224 224 } … … 274 274 for (String tag : tagSet) { 275 275 // support a = b===c as "a"="b===c" 276 String 276 String[] pair = tag.split("\\s*=\\s*",2); 277 277 keyValue[i][0] = pair[0]; 278 278 keyValue[i][1] = pair.length<2 ? "": pair[1];
Note:
See TracChangeset
for help on using the changeset viewer.