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

File:
1 edited

Legend:

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

    r12630 r12641  
    314314        }
    315315
    316         Main.main.undoRedo.add(new SequenceCommand(tr("Unglued Node"), cmds));
     316        MainApplication.undoRedo.add(new SequenceCommand(tr("Unglued Node"), cmds));
    317317        getLayerManager().getEditDataSet().setSelected(n);
    318318        mv.repaint();
     
    553553     */
    554554    private void execCommands(List<Command> cmds, List<Node> newNodes) {
    555         Main.main.undoRedo.add(new SequenceCommand(/* for correct i18n of plural forms - see #9110 */
     555        MainApplication.undoRedo.add(new SequenceCommand(/* for correct i18n of plural forms - see #9110 */
    556556                trn("Dupe into {0} node", "Dupe into {0} nodes", newNodes.size() + 1L, newNodes.size() + 1L), cmds));
    557557        // select one of the new nodes
     
    641641        notifyWayPartOfRelation(Collections.singleton(selectedWay));
    642642
    643         Main.main.undoRedo.add(new SequenceCommand(
     643        MainApplication.undoRedo.add(new SequenceCommand(
    644644                trn("Dupe {0} node into {1} nodes", "Dupe {0} nodes into {1} nodes",
    645645                        selectedNodes.size(), selectedNodes.size(), selectedNodes.size()+allNewNodes.size()), cmds));
Note: See TracChangeset for help on using the changeset viewer.