Package jsky.catalog

Examples of jsky.catalog.MemoryCatalog


            try {
                Class catalogClass = Class.forName(className);
                Catalog catalog = (Catalog) catalogClass.newInstance();
                result = catalog.query(queryArgs);
                if (result instanceof MemoryCatalog && !(result instanceof SkycatTable)) {
                    MemoryCatalog mcat = (MemoryCatalog) result;
                    result = new SkycatTable(_entry, mcat.getDataVector(), mcat.getFields());
                }
            } catch (Exception e) {
                e.printStackTrace();
                if (e instanceof IOException)
                    throw (IOException) e;
View Full Code Here


                if (c instanceof TableDisplayTool) {
                    _tableCellsEditableMenuItem.setEnabled(true);
                    TableQueryResult queryResult = ((TableDisplayTool) c)
                            .getTable();
                    if (queryResult instanceof MemoryCatalog) {
                        MemoryCatalog cat = (MemoryCatalog) queryResult;
                        _tableCellsEditableMenuItem.setSelected(!cat
                                .isReadOnly());
                    }
                } else {
                    _tableCellsEditableMenuItem.setSelected(false);
                    _tableCellsEditableMenuItem.setEnabled(false);
View Full Code Here

            for (int j = 0; j < numCols; j++) {
                row.add(model.getValueAt(i, j));
            }
            dataVector.add(row);
        }
        MemoryCatalog catalog = new MemoryCatalog(fieldDesc, dataVector);
        catalog.setTitle(title);
        FileOutputStream os = new FileOutputStream(file);
        catalog.saveAsSkycatTable(os);
        os.close();
    }
View Full Code Here

TOP

Related Classes of jsky.catalog.MemoryCatalog

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.