Ignore:
Timestamp:
2018-08-15T02:05:27+02:00 (8 years ago)
Author:
donvip
Message:

update to JOSM 14153

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetInfoAction.java

    r33547 r34466  
    1212import javax.swing.JOptionPane;
    1313
    14 import org.openstreetmap.josm.Main;
    1514import org.openstreetmap.josm.gui.MainApplication;
    1615import org.openstreetmap.josm.tools.ImageProvider;
     
    4746        Object info = offset == null ? null : getInformationObject(offset);
    4847        if (offset.isFlagged())
    49             JOptionPane.showMessageDialog(Main.parent, info, ImageryOffsetTools.DIALOG_TITLE, JOptionPane.PLAIN_MESSAGE);
     48            JOptionPane.showMessageDialog(MainApplication.getMainFrame(), info, ImageryOffsetTools.DIALOG_TITLE, JOptionPane.PLAIN_MESSAGE);
    5049        else {
    51             int result = JOptionPane.showOptionDialog(Main.parent, info, ImageryOffsetTools.DIALOG_TITLE,
     50            int result = JOptionPane.showOptionDialog(MainApplication.getMainFrame(), info, ImageryOffsetTools.DIALOG_TITLE,
    5251                    JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null,
    5352                    new String[] {"OK", tr("Report this offset")}, null);
    5453            if (result == 1) {
    5554                // ask for a reason
    56                 Object reason = JOptionPane.showInputDialog(Main.parent,
     55                Object reason = JOptionPane.showInputDialog(MainApplication.getMainFrame(),
    5756                        tr("You are to notify moderators of this offset. Why?"),
    5857                        ImageryOffsetTools.DIALOG_TITLE, JOptionPane.PLAIN_MESSAGE);
Note: See TracChangeset for help on using the changeset viewer.