Changeset 34466 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/DeprecateOffsetAction.java
- Timestamp:
- 2018-08-15T02:05:27+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/DeprecateOffsetAction.java
r33774 r34466 11 11 import javax.swing.JOptionPane; 12 12 13 import org.openstreetmap.josm.Main;14 13 import org.openstreetmap.josm.data.UserIdentityManager; 15 14 import org.openstreetmap.josm.gui.MainApplication; … … 51 50 tr("Are you sure this imagery offset is wrong?") : 52 51 tr("Are you sure this calibration geometry is aligned badly?"); 53 if (JOptionPane.showConfirmDialog(Main .parent,52 if (JOptionPane.showConfirmDialog(MainApplication.getMainFrame(), 54 53 tr("Warning: deprecation is basically irreversible!")+ "\n" + desc, 55 54 ImageryOffsetTools.DIALOG_TITLE, JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) != JOptionPane.YES_OPTION) { … … 81 80 String userName = UserIdentityManager.getInstance().getUserName(); 82 81 if (userName == null) { 83 JOptionPane.showMessageDialog(Main .parent, tr("To store imagery offsets you must be a registered OSM user."),82 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr("To store imagery offsets you must be a registered OSM user."), 84 83 ImageryOffsetTools.DIALOG_TITLE, JOptionPane.ERROR_MESSAGE); 85 84 return;
Note:
See TracChangeset
for help on using the changeset viewer.
