Changeset 6130 in josm for trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
- Timestamp:
- 2013-08-10T12:06:25+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r6106 r6130 34 34 import org.openstreetmap.josm.data.preferences.BooleanProperty; 35 35 import org.openstreetmap.josm.gui.ExtendedDialog; 36 import org.openstreetmap.josm.gui.Notification; 36 37 import org.openstreetmap.josm.gui.conflict.tags.CombinePrimitiveResolverDialog; 37 38 import org.openstreetmap.josm.gui.util.GuiHelper; … … 65 66 66 67 protected static void warnCombiningImpossible() { 67 String msg = tr("Could not combine ways 68 String msg = tr("Could not combine ways<br>" 68 69 + "(They could not be merged into a single string of nodes)"); 69 JOptionPane.showMessageDialog( 70 Main.parent, 71 msg, 72 tr("Information"), 73 JOptionPane.INFORMATION_MESSAGE 74 ); 70 new Notification(msg) 71 .setIcon(JOptionPane.INFORMATION_MESSAGE) 72 .show(); 75 73 return; 76 74 } … … 198 196 Set<Way> selectedWays = OsmPrimitive.getFilteredSet(selection, Way.class); 199 197 if (selectedWays.size() < 2) { 200 JOptionPane.showMessageDialog( 201 Main.parent, 202 tr("Please select at least two ways to combine."), 203 tr("Information"), 204 JOptionPane.INFORMATION_MESSAGE 205 ); 198 new Notification( 199 tr("Please select at least two ways to combine.")) 200 .setIcon(JOptionPane.INFORMATION_MESSAGE) 201 .setDuration(Notification.TIME_SHORT) 202 .show(); 206 203 return; 207 204 }
Note:
See TracChangeset
for help on using the changeset viewer.