src/org/openstreetmap/josm/plugins/opendata/core/actions/DownloadDataTask.java
protected final boolean askLicenseAgreement(License license) {
        if (license == null || (license.getURL() == null && license.getSummaryURL() == null)) {
            return true;
        }
        try {
            return new AskLicenseAgreementDialog(license).showDialog().getValue() == 1;

        } catch (IOException e) {
            JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr("License URL not available: {0}", license.toString()));
            return false;
        }
    }
/**
     * returns true if the user accepts the license, false if they refuse
     */
returns true if the user accepts the license, false if they refuse
returns true if the user accepts the license false if they refuse
protected final boolean askLicenseAgreement(License license) {
        if (license == null || (license.getURL() == null && license.getSummaryURL() == null)) {
            return true;
        }
        try {
            return new AskLicenseAgreementDialog(license).showDialog().getValue() == 1;
        } catch (IOException e) {
            JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr("License URL not available: {0}", license.toString()));
            return false;
        }
    }
protected final boolean askLicenseAgreement ( License license ) { if ( license == null || ( license . getURL ( ) == null && license . getSummaryURL ( ) == null ) ) { return true ; } try { return new AskLicenseAgreementDialog ( license ) . showDialog ( ) . getValue ( ) == 1 ; } catch ( IOException e ) { JOptionPane . showMessageDialog ( MainApplication . getMainFrame ( ) , tr ( "License URL not available: {0}" , license . toString ( ) ) ) ; return false ; } }
returns true if the user accepts the license, false if they refuse
returns true if the user accepts the license false if they refuse