Changeset 9233 in josm
- Timestamp:
- 2016-01-01T13:28:04+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
r8984 r9233 26 26 import javax.swing.JLabel; 27 27 import javax.swing.JList; 28 import javax.swing.JOptionPane; 28 29 import javax.swing.JPanel; 29 30 import javax.swing.JScrollPane; … … 37 38 import org.openstreetmap.josm.data.osm.RelationMember; 38 39 import org.openstreetmap.josm.data.osm.Way; 39 import org.openstreetmap.josm.gui. ExtendedDialog;40 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil; 40 41 import org.openstreetmap.josm.gui.OsmPrimitivRenderer; 41 42 import org.openstreetmap.josm.gui.help.HelpUtil; … … 206 207 207 208 if (!GraphicsEnvironment.isHeadless()) { 208 ExtendedDialog confirmDlg = new ExtendedDialog(Main.parent, tr("Confirm Purging"), 209 new String[] {tr("Purge"), tr("Cancel")}); 210 confirmDlg.setContent(buildPanel(modified), false); 211 confirmDlg.setButtonIcons(new String[] {"ok", "cancel"}); 212 213 int answer = confirmDlg.showDialog().getValue(); 214 if (answer != 1) 209 final boolean answer = ConditionalOptionPaneUtil.showConfirmationDialog( 210 "purge", Main.parent, buildPanel(modified), tr("Confirm Purging"), 211 JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_OPTION); 212 if (!answer) 215 213 return; 216 214
Note:
See TracChangeset
for help on using the changeset viewer.