Changeset 9366 in josm


Ignore:
Timestamp:
2016-01-09T21:55:12+01:00 (7 years ago)
Author:
simon04
Message:

see #8749 - Show a notification after performing "Add selection to relation"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/relation/AddSelectionToRelations.java

    r7937 r9366  
    99import java.util.LinkedList;
    1010
     11import javax.swing.JOptionPane;
     12
    1113import org.openstreetmap.josm.Main;
    1214import org.openstreetmap.josm.command.Command;
     
    1517import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1618import org.openstreetmap.josm.data.osm.Relation;
     19import org.openstreetmap.josm.gui.Notification;
    1720import org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor;
    1821import org.openstreetmap.josm.gui.util.GuiHelper;
     
    4346        if (!cmds.isEmpty()) {
    4447            Main.main.undoRedo.add(new SequenceCommand(tr("Add selection to relation"), cmds));
     48            new Notification(
     49                    tr("<html><strong>Add selection to relation</strong>: Control every single relation to avoid damage!"))
     50                    .setIcon(JOptionPane.WARNING_MESSAGE)
     51                    .show();;
    4552        }
    4653    }
Note: See TracChangeset for help on using the changeset viewer.