Ignore:
Timestamp:
2009-07-25T16:34:55+02:00 (14 years ago)
Author:
Gubaer
Message:

new: two utility classes in GUI subsystem: OptionPaneUtil and ConditionalOptionPaneUtil. Both provide methods for displaying message and option dialogs which are never hidden by one of the JOSM windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/DeleteCommand.java

    r1826 r1838  
    3131import org.openstreetmap.josm.data.osm.WaySegment;
    3232import org.openstreetmap.josm.data.osm.visitor.CollectBackReferencesVisitor;
     33import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil;
    3334import org.openstreetmap.josm.gui.ExtendedDialog;
    3435import org.openstreetmap.josm.gui.PrimitiveNameFormatter;
    35 import org.openstreetmap.josm.tools.DontShowAgainInfo;
    3636import org.openstreetmap.josm.tools.ImageProvider;
    3737
     
    391391                                        "<br>" +
    392392                                "Do you really want to delete?") + "</html>"));
    393                         return DontShowAgainInfo.show("delete_outside_nodes", msg, false, JOptionPane.YES_NO_OPTION, JOptionPane.YES_OPTION);
     393                        return ConditionalOptionPaneUtil.showConfirmationDialog(
     394                                "delete_outside_nodes",
     395                                Main.parent,
     396                                msg,
     397                                tr("Delete confirmation"),
     398                                JOptionPane.YES_NO_OPTION,
     399                                JOptionPane.QUESTION_MESSAGE,
     400                                JOptionPane.YES_OPTION
     401                        );
    394402                    }
    395 
    396403                }
    397404            }
Note: See TracChangeset for help on using the changeset viewer.