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/upload
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/upload/DiscardTagsHook.java

    r8338 r12641  
    1010import java.util.Map;
    1111
    12 import org.openstreetmap.josm.Main;
    1312import org.openstreetmap.josm.command.ChangePropertyCommand;
    1413import org.openstreetmap.josm.command.SequenceCommand;
    1514import org.openstreetmap.josm.data.APIDataSet;
    1615import org.openstreetmap.josm.data.osm.OsmPrimitive;
     16import org.openstreetmap.josm.gui.MainApplication;
    1717
    1818/**
     
    4444            SequenceCommand removeKeys = new SequenceCommand(tr("Removed obsolete tags"),
    4545                    new ChangePropertyCommand(objectsToUpload, map));
    46             Main.main.undoRedo.add(removeKeys);
     46            MainApplication.undoRedo.add(removeKeys);
    4747        }
    4848        return true;
  • trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java

    r12288 r12641  
    2020import org.openstreetmap.josm.data.osm.Relation;
    2121import org.openstreetmap.josm.data.osm.Tag;
     22import org.openstreetmap.josm.gui.MainApplication;
    2223
    2324/**
     
    204205
    205206            if (!cmds.isEmpty()) {
    206                 Main.main.undoRedo.add(new SequenceCommand(tr("Fix deprecated tags"), cmds));
     207                MainApplication.undoRedo.add(new SequenceCommand(tr("Fix deprecated tags"), cmds));
    207208            }
    208209        }
Note: See TracChangeset for help on using the changeset viewer.