Ignore:
Timestamp:
2018-08-18T20:08:26+02:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 14153

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java

    r33694 r34551  
    1717import javax.swing.JOptionPane;
    1818
    19 import org.openstreetmap.josm.Main;
    2019import org.openstreetmap.josm.command.AddCommand;
    2120import org.openstreetmap.josm.command.ChangeCommand;
     
    2322import org.openstreetmap.josm.command.DeleteCommand;
    2423import org.openstreetmap.josm.command.SequenceCommand;
     24import org.openstreetmap.josm.data.UndoRedoHandler;
    2525import org.openstreetmap.josm.data.coor.EastNorth;
    2626import org.openstreetmap.josm.data.osm.DataSet;
     
    7171        }
    7272        if (wont) {
    73             JOptionPane.showMessageDialog(Main.parent,
     73            JOptionPane.showMessageDialog(MainApplication.getMainFrame(),
    7474                    tr("Multipolygon must consist only of ways"), tr("Reconstruct polygon"), JOptionPane.ERROR_MESSAGE);
    7575            return;
     
    7979        String error = mpc.makeFromWays(ways);
    8080        if (error != null) {
    81             JOptionPane.showMessageDialog(Main.parent, error);
     81            JOptionPane.showMessageDialog(MainApplication.getMainFrame(), error);
    8282            return;
    8383        }
     
    198198        }
    199199
    200         MainApplication.undoRedo.add(new SequenceCommand(tr("Reconstruct polygons from relation {0}",
     200        UndoRedoHandler.getInstance().add(new SequenceCommand(tr("Reconstruct polygons from relation {0}",
    201201                r.getDisplayName(DefaultNameFormatter.getInstance())), commands));
    202202        ds.setSelected(newSelection);
Note: See TracChangeset for help on using the changeset viewer.