src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GeographicReader.java
protected static final boolean warnLenientMethod(final Component parent, final CoordinateReferenceSystem crs) {
        return new DialogPrompter<ExtendedDialog>() {
            @Override
            protected ExtendedDialog buildDialog() {
                final ExtendedDialog dlg = new ExtendedDialog(parent,
                        tr("Cannot transform to WGS84"),
                        new String[] {tr("Cancel"), tr("Continue")});
                // CHECKSTYLE.OFF: LineLength
                dlg.setContent("<html>" +
                        tr("JOSM was unable to find a strict mathematical transformation between ''{0}'' and WGS84.<br /><br />"+
                        "Do you want to try a <i>lenient</i> method, which will perform a non-precise transformation (<b>with location errors up to 1 km</b>) ?<br/><br/>"+
                        "If so, <b>do NOT upload</b> such data to OSM !", crs.getName())+
                        "</html>");
                // CHECKSTYLE.ON: LineLength
                dlg.setButtonIcons(new Icon[] {
                        new ImageProvider("cancel").setMaxSize(ImageSizes.LARGEICON).get(),
                        new ImageProvider("ok").setMaxSize(ImageSizes.LARGEICON).addOverlay(
                                new ImageOverlay(new ImageProvider("warning-small"), 0.5, 0.5, 1.0, 1.0)).get()});
                dlg.setToolTipTexts(new String[] {
                        tr("Cancel"),
                        tr("Try lenient method")});
                dlg.setIcon(JOptionPane.WARNING_MESSAGE);
                dlg.setCancelButton(1);
                return dlg;
            }
        }.promptInEdt().getValue() != 2;
    }
/**
     * returns true if the user wants to cancel, false if they
     * want to continue
     */
returns true if the user wants to cancel, false if they
want to continue
returns true if the user wants to cancel false if they want to continue
protected static final boolean warnLenientMethod(final Component parent, final CoordinateReferenceSystem crs) {
        return new DialogPrompter<ExtendedDialog>() {
            @Override
            protected ExtendedDialog buildDialog() {
                final ExtendedDialog dlg = new ExtendedDialog(parent,
                        tr("Cannot transform to WGS84"),
                        new String[] {tr("Cancel"), tr("Continue")});
                dlg.setContent("<html>" +
                        tr("JOSM was unable to find a strict mathematical transformation between ''{0}'' and WGS84.<br /><br />"+
                        "Do you want to try a <i>lenient</i> method, which will perform a non-precise transformation (<b>with location errors up to 1 km</b>) ?<br/><br/>"+
                        "If so, <b>do NOT upload</b> such data to OSM !", crs.getName())+
                        "</html>");
                dlg.setButtonIcons(new Icon[] {
                        new ImageProvider("cancel").setMaxSize(ImageSizes.LARGEICON).get(),
                        new ImageProvider("ok").setMaxSize(ImageSizes.LARGEICON).addOverlay(
                                new ImageOverlay(new ImageProvider("warning-small"), 0.5, 0.5, 1.0, 1.0)).get()});
                dlg.setToolTipTexts(new String[] {
                        tr("Cancel"),
                        tr("Try lenient method")});
                dlg.setIcon(JOptionPane.WARNING_MESSAGE);
                dlg.setCancelButton(1);
                return dlg;
            }
        }.promptInEdt().getValue() != 2;
    }
protected static final boolean warnLenientMethod ( final Component parent , final CoordinateReferenceSystem crs ) { return new DialogPrompter < ExtendedDialog > ( ) { @ Override protected ExtendedDialog buildDialog ( ) { final ExtendedDialog dlg = new ExtendedDialog ( parent , tr ( "Cannot transform to WGS84" ) , new String [ ] { tr ( "Cancel" ) , tr ( "Continue" ) } ) ; dlg . setContent ( "<html>" + tr ( "JOSM was unable to find a strict mathematical transformation between ''{0}'' and WGS84.<br /><br />" + "Do you want to try a <i>lenient</i> method, which will perform a non-precise transformation (<b>with location errors up to 1 km</b>) ?<br/><br/>" + "If so, <b>do NOT upload</b> such data to OSM !" , crs . getName ( ) ) + "</html>" ) ; dlg . setButtonIcons ( new Icon [ ] { new ImageProvider ( "cancel" ) . setMaxSize ( ImageSizes . LARGEICON ) . get ( ) , new ImageProvider ( "ok" ) . setMaxSize ( ImageSizes . LARGEICON ) . addOverlay ( new ImageOverlay ( new ImageProvider ( "warning-small" ) , 0.5 , 0.5 , 1.0 , 1.0 ) ) . get ( ) } ) ; dlg . setToolTipTexts ( new String [ ] { tr ( "Cancel" ) , tr ( "Try lenient method" ) } ) ; dlg . setIcon ( JOptionPane . WARNING_MESSAGE ) ; dlg . setCancelButton ( 1 ) ; return dlg ; } } . promptInEdt ( ) . getValue ( ) != 2 ; }
returns true if the user wants to cancel, false if they
 want to continue
returns true if the user wants to cancel false if they want to continue
// CHECKSTYLE.OFF: LineLength
 // CHECKSTYLE.ON: LineLength
