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

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

Location:
trunk/src/org/openstreetmap/josm/actions/relation
Files:
2 edited

Legend:

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

    r12636 r12641  
    1111import javax.swing.JOptionPane;
    1212
    13 import org.openstreetmap.josm.Main;
    1413import org.openstreetmap.josm.command.Command;
    1514import org.openstreetmap.josm.command.SequenceCommand;
     
    4645        }
    4746        if (!cmds.isEmpty()) {
    48             Main.main.undoRedo.add(new SequenceCommand(tr("Add selection to relation"), cmds));
     47            MainApplication.undoRedo.add(new SequenceCommand(tr("Add selection to relation"), cmds));
    4948            new Notification(
    5049                    "<html>"+
  • trunk/src/org/openstreetmap/josm/actions/relation/RecentRelationsAction.java

    r12639 r12641  
    1818import javax.swing.plaf.basic.BasicArrowButton;
    1919
    20 import org.openstreetmap.josm.Main;
    2120import org.openstreetmap.josm.actions.JosmAction;
    2221import org.openstreetmap.josm.data.osm.Relation;
     
    5049        arrow = editButton.createArrow(this);
    5150        arrow.setToolTipText(tr("List of recent relations"));
    52         Main.main.undoRedo.addCommandQueueListener(this);
     51        MainApplication.undoRedo.addCommandQueueListener(this);
    5352        enableArrow();
    5453        shortcut = Shortcut.registerShortcut(
Note: See TracChangeset for help on using the changeset viewer.