Examples of showAlert()


Examples of com.lightcrafts.platform.AlertDialog.showAlert()

     * Show the user a dialog telling him/her to upgrade the installed Java
     * version, then quit.
     */
    private static void showUpgradeJavaDialogAndQuit() {
        final AlertDialog dialog = Platform.getPlatform().getAlertDialog();
        dialog.showAlert(
            null, LOCALE.get( "UpgradeJavaErrorMajor" ),
            LOCALE.get( "UpgradeJavaErrorMinor" ),
            AlertDialog.ERROR_ALERT, LOCALE.get( "QuitButton" )
        );
        System.exit( 0 );
View Full Code Here

Examples of com.lightcrafts.platform.AlertDialog.showAlert()

        else {
            message = LOCALE.get("DeleteQuestionSingular", files[0].getName());
        }
        String okButton = LOCALE.get("DeleteButton");
        String cancelButton = LOCALE.get("CancelButton");
        int option = alert.showAlert(
            frame, message, info.toString(),
            AlertDialog.WARNING_ALERT,
            okButton, cancelButton
        );
        if (option == 0) {
View Full Code Here

Examples of com.lightcrafts.platform.AlertDialog.showAlert()

                    deleted = false;
                }
                if (! deleted) {
                    String error =
                        LOCALE.get("DeleteFailed", file.getName());
                    option = alert.showAlert(
                        frame, error, "", AlertDialog.ERROR_ALERT,
                        LOCALE.get( "ContinueButton" ),
                        LOCALE.get( "CancelButton" )
                    );
                    if (option > 0) {
View Full Code Here

Examples of com.lightcrafts.platform.AlertDialog.showAlert()

            licenseChecker = new ESDLicenseCheckerModule();
        else if ( "TB".equals( licenseType ) )
            licenseChecker = new ExpirationLicenseCheckerModule();
        else {
            final AlertDialog dialog = Platform.getPlatform().getAlertDialog();
            dialog.showAlert(
                null, LOCALE.get( "NoLicenseTypeDefinedMajor" ),
                LOCALE.get( "NoLicenseTypeDefinedMinor" ),
                AlertDialog.ERROR_ALERT,
                LOCALE.get( "QuitButton" )
            );
View Full Code Here

Examples of com.lightcrafts.platform.AlertDialog.showAlert()

    /**
     * {@inheritDoc}
     */
    public boolean showDeactivateDialog() {
        final AlertDialog dialog = Platform.getPlatform().getAlertDialog();
        final int button = dialog.showAlert(
            null,
            LOCALE.get( "DeactivateQuestionMajor" ),
            LOCALE.get( "DeactivateQuestionMinor" ), AlertDialog.WARNING_ALERT,
            LOCALE.get( "CancelButton" ), LOCALE.get( "DeactivateButton" )
        );
View Full Code Here

Examples of com.lightcrafts.platform.AlertDialog.showAlert()

    /**
     * {@inheritDoc}
     */
    public void showErrorAlert( String errorMessage, boolean isFatal ) {
        final AlertDialog dialog = Platform.getPlatform().getAlertDialog();
        dialog.showAlert(
            null, errorMessage, null, AlertDialog.ERROR_ALERT,
            isFatal ? LOCALE.get( "QuitButton" ) : LOCALE.get( "OKButton" )
        );
    }

View Full Code Here

Examples of com.lightcrafts.platform.AlertDialog.showAlert()

        if ( lib.isKeyValid( key ) )
            return true;
        if ( key.startsWith( "0101605001" ) ||  // LZ 1.x
             key.startsWith( "LZRT" ) || key.startsWith( "LZ2" ) ) {
            final AlertDialog dialog = Platform.getPlatform().getAlertDialog();
            final int button = dialog.showAlert(
                null,
                LOCALE.get( "Pre3SNErrorMajor" ),
                LOCALE.get( "Pre3SNErrorMinor" ),
                AlertDialog.ERROR_ALERT,
                LOCALE.get( "BuyNowButton" ),
View Full Code Here

Examples of com.lightcrafts.platform.AlertDialog.showAlert()

                LOCALE.get( "LC_WRITE_LICENSE_KEY_FAILED" ), false
            );
            return false;
        }
        final AlertDialog dialog = Platform.getPlatform().getAlertDialog();
        dialog.showAlert(
            null, LOCALE.get( "ActivationSucceededMajor" ),
            LOCALE.get( "ActivationSucceededMinor" ),
            AlertDialog.WARNING_ALERT, LOCALE.get( "OKButton" )
        );
        return true;
View Full Code Here

Examples of com.lightcrafts.platform.AlertDialog.showAlert()

        //
        // First, check to see if the computer has an internet connection.
        //
        if ( !hasInternetConnection() ) {
            final AlertDialog alert = Platform.getPlatform().getAlertDialog();
            alert.showAlert(
                null,
                LOCALE.get( "NoInternetConnectionErrorMajor" ),
                LOCALE.get( "NoInternetConnectionErrorMinor" ),
                AlertDialog.ERROR_ALERT,
                LOCALE.get( "CheckForUpdateOKButton" )
View Full Code Here

Examples of com.lightcrafts.platform.AlertDialog.showAlert()

            null, checkThread, LOCALE.get( "CheckingForUpdateMessage" ), false
        );
        final Throwable t = progress.getThrown();
        if ( t != null ) {
            final AlertDialog alert = Platform.getPlatform().getAlertDialog();
            alert.showAlert(
                null,
                LOCALE.get( "CheckingForUpdateProblem" ),
                t.getLocalizedMessage(),
                AlertDialog.ERROR_ALERT,
                LOCALE.get( "CheckForUpdateOKButton" )
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.