Package edu.brown.utils

Examples of edu.brown.utils.IOFileFilter


        }
    } // END CLASS
   
   
    protected String exportConflictGraph() {
        IOFileFilter filter = new IOFileFilter("Graphviz Dot File", "dot");
        File defaultFile = new File(String.format("%s-conflict.dot", args.catalogContext.database.getProject()));
        String path = null;
        try {
            path = showSaveDialog("Export ConflictGraph", ".", filter, defaultFile);
            if (path != null) {
View Full Code Here


        setVisible(false);
        System.exit(0);
    }
   
    protected Pair<Catalog, String> openCatalogFile() {
        IOFileFilter filter = new IOFileFilter("Catalog File", "txt");
        Pair<Catalog, String> ret = null;
        try {
            String path = showLoadDialog("Open Catalog File", ".", filter);
            if (path != null) {
                Catalog new_catalog = CatalogUtil.loadCatalog(path);
View Full Code Here

        }
        return (ret);
    }
   
    protected Pair<Catalog, String> openCatalogJar() {
        IOFileFilter filter = new IOFileFilter("Project Jar", "jar");
        Pair<Catalog, String> ret = null;
        try {
            String path = showLoadDialog("Open Catalog File from Project Jar", ".", filter);
            if (path != null) {
                CatalogContext new_catalog = CatalogUtil.loadCatalogContextFromJar(new File(path));
View Full Code Here

        }
        return (ret);
    }
   
    protected Pair<WorkloadStatistics, File> openWorkloadStats() {
        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);
View Full Code Here

        }
        return (ret);
    }
   
    protected String saveWorkloadStats() {
        IOFileFilter filter = new IOFileFilter("Workload Stats", "stats");
        String path = null;
        String dir = args.stats_path.getParent();
        try {
            path = showSaveDialog("Save Workload Statistics File", dir, filter);
            if (path != null) this.args.stats.save(new File(path));
View Full Code Here

TOP

Related Classes of edu.brown.utils.IOFileFilter

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.