Examples of ProgressDialog


Examples of com.art.anette.client.ui.forms.ProgressDialog

        }

        protected void initGui() {
            GuiUtils.invokeLater(new Runnable() {
                public void run() {
                    progressDialog = new ProgressDialog();
                    progressDialog.setVisible(true);

                    progressDialog.setProgressbarIndeterminate(indeterminate);
                    if (!indeterminate) {
                        progressDialog.setProgressbarMax(max);
View Full Code Here

Examples of com.atlauncher.gui.dialogs.ProgressDialog

    public void checkResources() {
        LogManager.debug("Checking if using old format of resources");
        File indexesDir = new File(this.resourcesDir, "indexes");
        if (!indexesDir.exists() || !indexesDir.isDirectory()) {
            final ProgressDialog dialog = new ProgressDialog(Language.INSTANCE.localize("settings" + "" +
                    ".rearrangingresources"), 0, Language.INSTANCE.localize("settings.rearrangingresources"), null);
            Thread thread = new Thread() {
                public void run() {
                    File indexesDir = new File(getResourcesDir(), "indexes");
                    File objectsDir = new File(getResourcesDir(), "objects");
                    File virtualDir = new File(getResourcesDir(), "virtual");
                    File legacyDir = new File(virtualDir, "legacy");
                    File tempDir = new File(getTempDir(), "assets");
                    tempDir.mkdir();
                    Utils.moveDirectory(getResourcesDir(), tempDir);
                    indexesDir.mkdirs();
                    objectsDir.mkdirs();
                    virtualDir.mkdirs();
                    legacyDir.mkdirs();
                    Utils.moveDirectory(tempDir, legacyDir);
                    Utils.delete(tempDir);
                    Utils.spreadOutResourceFiles(legacyDir);
                    dialog.close();
                }
            };
            dialog.addThread(thread);
            dialog.start();

        }
        LogManager.debug("Finished checking if using old format of resources");
    }
View Full Code Here

Examples of com.eviware.soapui.support.components.ProgressDialog

        buttons[0] );
  }

  public XProgressDialog createProgressDialog( String label, int length, String initialValue, boolean canCancel )
  {
    return new ProgressDialog( "Progress", label, length, initialValue, canCancel );
  }
View Full Code Here

Examples of com.lightcrafts.platform.ProgressDialog

        Logger logger = Logger.getLogger("com.lightcrafts.image.metadata");
        Handler handler = new TerseLoggingHandler(System.out);
        logger.addHandler(handler);
        logger.setUseParentHandlers(false);

        ProgressDialog dialog = Platform.getPlatform().getProgressDialog();
        ProgressThread thread = new ProgressThread(dialog) {
            public void run() {
                Images = new ImageList(
                    directory,
                    100,
                    FileCacheFactory.get(directory),
                    true,
                    ImageDatumComparator.CaptureTime,
                    getProgressIndicator()
                );
            }
        };
        dialog.showProgress(frame, thread, "Scanning...", 0, 1, false);
        Throwable thrown = dialog.getThrown();
        if (thrown != null) {
            throw new RuntimeException("Error initializing ImageList", thrown);
        }
        return Images;
    }
View Full Code Here

Examples of com.lightcrafts.platform.ProgressDialog

        //
        // Activation of a licence key takes several seconds, so we show the
        // user an indeterminate progress dialog and check to see if the
        // ActivateThread threw an exception.
        //
        final ProgressDialog pd = Platform.getPlatform().getProgressDialog();
        final ActivateThread at = new ActivateThread( pd, key, true );
        pd.showProgress(
            null, at, LOCALE.get( "ActivatingSerialNumberMessage" ), false
        );
        final Throwable t = pd.getThrown();
        if ( t != null )
            if ( t instanceof RuntimeException )
                throw (RuntimeException)t;
            else
                throw new RuntimeException( t );
View Full Code Here

Examples of com.lightcrafts.platform.ProgressDialog

        //
        // Deactivation of a licence key takes several seconds, so we show the
        // user an indeterminate progress dialog and check to see if the
        // ActivateThread threw an exception.
        //
        final ProgressDialog pd = Platform.getPlatform().getProgressDialog();
        final ActivateThread at = new ActivateThread( pd, key, false );
        pd.showProgress(
            null, at, LOCALE.get( "DeactivatingSerialNumberMessage" ), false
        );
        final Throwable t = pd.getThrown();
        if ( t != null )
            if ( t instanceof RuntimeException )
                throw (RuntimeException)t;
            else
                throw new RuntimeException( t );
View Full Code Here

Examples of com.lightcrafts.platform.ProgressDialog

        final Engine engine,
        final ImageExportOptions options,
        final String title,
        final Frame parent
    ) throws IOException {
        ProgressDialog dialog = Platform.getPlatform().getProgressDialog();
        ProgressThread thread = new ProgressThread(dialog) {
            public void run() {
                try {
                    // Write the file:
                    export(engine, options, this);
                }
                catch (IOException e) {
                    // This exception should be unpacked in the error handling
                    // below, following dialog.showProgress().
                    throw new RuntimeException(e);
                }
            }
        };
        dialog.showProgress(parent, thread, title, 0, 10, true);

        // Unpack any Throwable, in case it hides a checked exception:
        Throwable error = dialog.getThrown();
        if (error != null) {
            if ( error instanceof IOException )
                throw (IOException) error;
            if ( error instanceof RuntimeException )
                throw (RuntimeException) error;
View Full Code Here

Examples of com.lightcrafts.platform.ProgressDialog

        //
        // Finally, put up a ProgressDialog and check to see if there is an
        // update available.
        //
        final ProgressDialog progress =
            Platform.getPlatform().getProgressDialog();
        final SynchronousCheckThread checkThread =
            new SynchronousCheckThread( progress );
        progress.showProgress(
            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" ),
View Full Code Here

Examples of com.lightcrafts.platform.ProgressDialog

    }

    // Initialize the ImageList data for the browser from the given directory
    // under a ProgressDialog.
    private void initImages(final File directory, final boolean useCache) {
        ProgressDialog dialog = Platform.getPlatform().getProgressDialog();
        ProgressThread thread = new ProgressThread(dialog) {
            public void run() {
                DocumentDatabase.addDocumentDirectory(directory);
                images = new ImageList(
                    directory,
                    100,
                    FileCacheFactory.get(directory),
                    useCache,
                    ImageDatumComparator.CaptureTime,
                    getProgressIndicator()
                );
            }
            public void cancel() {
                ImageList.cancel();
            }
        };
        FileSystemView view = Platform.getPlatform().getFileSystemView();
        String dirName = view.getSystemDisplayName(directory);
        dialog.showProgress(
            this, thread, LOCALE.get("ScanningMessage", dirName), 0, 1, true
        );
        Throwable t = dialog.getThrown();
        if (t != null) {
            throw new RuntimeException(LOCALE.get("ScanningError"), t);
        }
        if (images.getAllImageData().isEmpty()) {
            // Enqueue this, because the layout may be getting initialized
View Full Code Here

Examples of com.mucommander.ui.dialog.file.ProgressDialog

        else {
            MainFrame mainFrame = folderPanel.getMainFrame();
            AbstractFile destFolder = folderPanel.getCurrentFolder();
            if(currentDropAction==DnDConstants.ACTION_MOVE) {
                // Start moving files
                ProgressDialog progressDialog = new ProgressDialog(mainFrame, Translator.get("move_dialog.moving"));
                MoveJob moveJob = new MoveJob(progressDialog, mainFrame, droppedFiles, destFolder, null, FileCollisionDialog.ASK_ACTION, false);
                progressDialog.start(moveJob);
            }
            else {
                // Start copying files
                ProgressDialog progressDialog = new ProgressDialog(mainFrame, Translator.get("copy_dialog.copying"));
                CopyJob job = new CopyJob(progressDialog, mainFrame, droppedFiles, destFolder, null, CopyJob.COPY_MODE, FileCollisionDialog.ASK_ACTION);
                progressDialog.start(job);
            }
        }

        // Report that the drop event has been successfully handled
        event.dropComplete(true);
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.