Ignore:
Timestamp:
2018-08-13T02:18:54+02:00 (8 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.parent and Main itself

File:
1 edited

Legend:

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

    r14137 r14153  
    2121import javax.swing.JOptionPane;
    2222
    23 import org.openstreetmap.josm.Main;
    2423import org.openstreetmap.josm.command.AddCommand;
    2524import org.openstreetmap.josm.command.ChangeCommand;
     
    416415            // Checking if the new coordinate is outside of the world
    417416            if (mv.getLatLon(mousePos.x, mousePos.y).isOutSideWorld()) {
    418                 JOptionPane.showMessageDialog(Main.parent,
     417                JOptionPane.showMessageDialog(MainApplication.getMainFrame(),
    419418                        tr("Cannot add a node outside of the world."),
    420419                        tr("Warning"), JOptionPane.WARNING_MESSAGE);
     
    502501                    }
    503502                } else if (candidateNode.isTagged()) {
    504                     JOptionPane.showMessageDialog(Main.parent,
     503                    JOptionPane.showMessageDialog(MainApplication.getMainFrame(),
    505504                            tr("Cannot delete node that has tags"),
    506505                            tr("Error"), JOptionPane.ERROR_MESSAGE);
Note: See TracChangeset for help on using the changeset viewer.