Changeset 34466 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetInfoAction.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/OffsetInfoAction.java
r33547 r34466 12 12 import javax.swing.JOptionPane; 13 13 14 import org.openstreetmap.josm.Main;15 14 import org.openstreetmap.josm.gui.MainApplication; 16 15 import org.openstreetmap.josm.tools.ImageProvider; … … 47 46 Object info = offset == null ? null : getInformationObject(offset); 48 47 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); 50 49 else { 51 int result = JOptionPane.showOptionDialog(Main .parent, info, ImageryOffsetTools.DIALOG_TITLE,50 int result = JOptionPane.showOptionDialog(MainApplication.getMainFrame(), info, ImageryOffsetTools.DIALOG_TITLE, 52 51 JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, 53 52 new String[] {"OK", tr("Report this offset")}, null); 54 53 if (result == 1) { 55 54 // ask for a reason 56 Object reason = JOptionPane.showInputDialog(Main .parent,55 Object reason = JOptionPane.showInputDialog(MainApplication.getMainFrame(), 57 56 tr("You are to notify moderators of this offset. Why?"), 58 57 ImageryOffsetTools.DIALOG_TITLE, JOptionPane.PLAIN_MESSAGE);
Note:
See TracChangeset
for help on using the changeset viewer.
