Ignore:
Timestamp:
2017-08-25T03:01:22+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.main.undoRedo. Replacement: gui.MainApplication.undoRedo

Location:
trunk/src/org/openstreetmap/josm/io/remotecontrol
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java

    r12636 r12641  
    258258                    String key = (String) tm.getValueAt(i, 1);
    259259                    Object value = tm.getValueAt(i, 2);
    260                     Main.main.undoRedo.add(new ChangePropertyCommand(sel,
     260                    MainApplication.undoRedo.add(new ChangePropertyCommand(sel,
    261261                            key, value instanceof String ? (String) value : ""));
    262262                }
     
    312312            if (MainApplication.getLayerManager().getEditDataSet() != null) {
    313313                for (String[] row : keyValue) {
    314                     Main.main.undoRedo.add(new ChangePropertyCommand(primitives, row[0], row[1]));
     314                    MainApplication.undoRedo.add(new ChangePropertyCommand(primitives, row[0], row[1]));
    315315                }
    316316            }
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddNodeHandler.java

    r12636 r12641  
    9999            node = new Node(ll);
    100100            // Now execute the commands to add this node.
    101             Main.main.undoRedo.add(new AddCommand(node));
     101            MainApplication.undoRedo.add(new AddCommand(node));
    102102        }
    103103
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java

    r12636 r12641  
    167167        allCoordinates.clear();
    168168        commands.add(new AddCommand(way));
    169         Main.main.undoRedo.add(new SequenceCommand(tr("Add way"), commands));
     169        MainApplication.undoRedo.add(new SequenceCommand(tr("Add way"), commands));
    170170        MainApplication.getLayerManager().getEditDataSet().setSelected(way);
    171171        if (PermissionPrefWithDefault.CHANGE_VIEWPORT.isAllowed()) {
Note: See TracChangeset for help on using the changeset viewer.