Package de.timefinder.core.ui.command.TimeFinderCommand

Examples of de.timefinder.core.ui.command.TimeFinderCommand.MySwingWorker


                return;
            }
        }
        pm.taskStarted(tr.get(ID + ".startTask"), 100);

        MySwingWorker sw = new MySwingWorker(ID) {

            @Override
            protected void myconstruct() throws Exception {
                bar.getProgressMonitor().worked(10);
                ImportWinQD importer = new ImportWinQD(dataPool, settings, file);

                bar.getProgressMonitor().worked(20);
                importer.doWork();
                bar.getProgressMonitor().worked(80);
            }

            @Override
            protected void done() {
                bar.getProgressMonitor().worked(90);
                openAllViews();
                bar.getProgressMonitor().worked(100);
                super.done();
            }
        };

        sw.execute();
    }
View Full Code Here

TOP

Related Classes of de.timefinder.core.ui.command.TimeFinderCommand.MySwingWorker

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.