IOFileFilter filter = new IOFileFilter("Workload Stats", "stats");
Pair<WorkloadStatistics, File> ret = null;
try {
String path = showLoadDialog("Open Workload Statistics File", ".", filter);
if (path != null) {
WorkloadStatistics new_stats = new WorkloadStatistics(args.catalog_db);
File f = new File(path);
new_stats.load(f, args.catalog_db);
ret = new Pair<WorkloadStatistics, File>(new_stats, f);
}
} catch (Exception ex) {
ex.printStackTrace();
showErrorDialog("Failed to open workload stats file", ex.getMessage());