diff --git a/src/org/openstreetmap/josm/actions/PurgeAction.java b/src/org/openstreetmap/josm/actions/PurgeAction.java
index 3572064..86a38a1 100644
|
a
|
b
|
|
| 25 | 25 | import javax.swing.JCheckBox; |
| 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; |
| 30 | 31 | import javax.swing.JSeparator; |
| … |
… |
|
| 36 | 37 | import org.openstreetmap.josm.data.osm.Relation; |
| 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; |
| 42 | 43 | import org.openstreetmap.josm.gui.layer.OsmDataLayer; |
| … |
… |
public void actionPerformed(ActionEvent e) {
|
| 205 | 206 | boolean clearUndoRedo = false; |
| 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 | |
| 217 | 215 | clearUndoRedo = cbClearUndoRedo.isSelected(); |