Package org.openstreetmap.josm.command

Examples of org.openstreetmap.josm.command.ChangePropertyCommand


                }
                nextKey = (String)tagData.getValueAt(nextKeyIndex, 0);
            }

            Collection<OsmPrimitive> sel = Main.main.getInProgressSelection();
            Main.main.undoRedo.add(new ChangePropertyCommand(sel, tags));

            membershipTable.clearSelection();
            if (nextKey != null) {
                tagTable.changeSelection(findRow(tagData, nextKey), 0, false, false);
            }
View Full Code Here


            String key = tagData.getValueAt(tagTable.getSelectedRow(), 0).toString();
            Collection<OsmPrimitive> sel = Main.main.getInProgressSelection();
            String clipboard = Utils.getClipboardContent();
            if (sel.isEmpty() || clipboard == null)
                return;
            Main.main.undoRedo.add(new ChangePropertyCommand(sel, key, Utils.strip(clipboard)));
        }
View Full Code Here

            for (String key : discardableKeys) {
                map.put(key, null);
            }

            SequenceCommand removeKeys = new SequenceCommand(tr("Removed obsolete tags"),
                    new ChangePropertyCommand(objectsToUpload, map));
            Main.main.undoRedo.add(removeKeys);
        }
        return true;
    }
View Full Code Here

                for (FixData fix : deprecated) {
                    if(fix.fixKeys(keys, osm))
                        modified = true;
                }
                if(modified)
                    cmds.add(new ChangePropertyCommand(Collections.singleton(osm), new HashMap<>(keys)));
            }
        }

        if(!cmds.isEmpty())
            Main.main.undoRedo.add(new SequenceCommand(tr("Fix deprecated tags"), cmds));
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.command.ChangePropertyCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.