Package net.sourceforge.processdash.ui.lib

Examples of net.sourceforge.processdash.ui.lib.ProgressDialog


            }
        }
    }

    public void exportInteractively(Vector filter, File dest) {
        ProgressDialog p = ProgressDialog.create(this, resource
                .getString("ExportExporting"), resource
                .getString("ExportExportingDataDots"));
        ExportMetricsFileInstruction instr = new ExportMetricsFileInstruction(
                dest.getAbsolutePath(), filter);
        p.addTask(ExportManager.getInstance().getExporter(instr));
        p.setCompletionMessage(resource.getString("ExportDone"));
        p.run();
    }
View Full Code Here


       
        // nothing to do?
        if (tasks.isEmpty())
            return;

        ProgressDialog p = null;
        if (window != null)
            p = ProgressDialog.create(window, resource
                    .getString("ExportAutoExporting"), resource
                    .getString("ExportExportingDataDots"));
       
        final ExportJanitor janitor = new ExportJanitor(data);
        janitor.startExportAllOperation();
        fireEvent(EXPORT_STARTING, EXPORT_ALL_PATH);
       
        for (Iterator iter = tasks.iterator(); iter.hasNext();) {
            AbstractInstruction instr = (AbstractInstruction) iter.next();
            Runnable exporter = getExporter(instr);
           
            if (instr.isEnabled()) {
                if (p != null)
                    p.addTask(exporter);
                else
                    exporter.run();
            }
        }

        if (p != null) {
            p.addTask(new Runnable() { public void run() {
                janitor.finishExportAllOperation(); }});
            p.run();

        } else {
            janitor.finishExportAllOperation();
        }
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.ui.lib.ProgressDialog

Copyright © 2018 www.massapicom. 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.