src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleHandler.java
public static boolean confirmDisableModule(Component parent, String reason, String name) {
        ButtonSpec[] options = new ButtonSpec[] {
                new ButtonSpec(
                        tr("Disable module"),
                        new ImageProvider("dialogs", "delete"),
                        tr("Click to delete the module ''{0}''", name),
                        null /* no specific help context */
                        ),
                new ButtonSpec(
                        tr("Keep module"),
                        new ImageProvider("cancel"),
                        tr("Click to keep the module ''{0}''", name),
                        null /* no specific help context */
                        )
        };
        int ret = HelpAwareOptionPane.showOptionDialog(
                parent,
                reason,
                tr("Disable module"),
                JOptionPane.WARNING_MESSAGE,
                null,
                options,
                options[0],
                null // FIXME: add help topic
                );
        return ret == 0;
    }
/**
     * Ask the user for confirmation that a module shall be disabled.
     *
     * @param parent parent component
     * @param reason the reason for disabling the module
     * @param name the module name
     * @return true, if the module shall be disabled; false, otherwise
     */
Ask the user for confirmation that a module shall be disabled.

@param parent parent component
@param reason the reason for disabling the module
@param name the module name
@return true, if the module shall be disabled; false, otherwise
Ask the user for confirmation that a module shall be disabled . @param parent parent component @param reason the reason for disabling the module @param name the module name @return true if the module shall be disabled ; false otherwise
public static boolean confirmDisableModule(Component parent, String reason, String name) {
        ButtonSpec[] options = new ButtonSpec[] {
                new ButtonSpec(
                        tr("Disable module"),
                        new ImageProvider("dialogs", "delete"),
                        tr("Click to delete the module ''{0}''", name),
                        null /* no specific help context */
                        ),
                new ButtonSpec(
                        tr("Keep module"),
                        new ImageProvider("cancel"),
                        tr("Click to keep the module ''{0}''", name),
                        null /* no specific help context */
                        )
        };
        int ret = HelpAwareOptionPane.showOptionDialog(
                parent,
                reason,
                tr("Disable module"),
                JOptionPane.WARNING_MESSAGE,
                null,
                options,
                options[0],
                null 
                );
        return ret == 0;
    }
public static boolean confirmDisableModule ( Component parent , String reason , String name ) { ButtonSpec [ ] options = new ButtonSpec [ ] { new ButtonSpec ( tr ( "Disable module" ) , new ImageProvider ( "dialogs" , "delete" ) , tr ( "Click to delete the module ''{0}''" , name ) , null /* no specific help context */ ) , new ButtonSpec ( tr ( "Keep module" ) , new ImageProvider ( "cancel" ) , tr ( "Click to keep the module ''{0}''" , name ) , null /* no specific help context */ ) } ; int ret = HelpAwareOptionPane . showOptionDialog ( parent , reason , tr ( "Disable module" ) , JOptionPane . WARNING_MESSAGE , null , options , options [ 0 ] , null ) ; return ret == 0 ; }
Ask the user for confirmation that a module shall be disabled.
Ask the user for confirmation that a module shall be disabled .
// FIXME: add help topic
