Package slash.navigation.base

Examples of slash.navigation.base.BaseNavigationFormat


        if (!source.exists()) {
            log.severe("Source '" + source.getAbsolutePath() + "' does not exist; stopping.");
            System.exit(10);
        }

        BaseNavigationFormat format = findFormat(args[1]);
        if (format == null) {
            log.severe("Format '" + args[1] + "' does not exist; stopping.");
            logFormatNames(getWriteFormatsSortedByName());
            System.exit(12);
        }

        String baseName = removeExtension(args[2]);
        File target = absolutize(new File(baseName + format.getExtension()));
        if (target.exists()) {
            log.severe("Target '" + target.getAbsolutePath() + "' already exists; stopping.");
            System.exit(13);
        }
View Full Code Here


        add(rowIndex, asList(position));
    }

    @SuppressWarnings("unchecked")
    public List<BaseNavigationPosition> createPositions(BaseRoute<BaseNavigationPosition, BaseNavigationFormat> route) throws IOException {
        BaseNavigationFormat targetFormat = getRoute().getFormat();
        return asFormatForPositions((List) route.getPositions(), targetFormat);
    }
View Full Code Here

    }

    public void run() {
        int[] selectedRows = table.getSelectedRows();
        if (selectedRows.length > 0) {
            BaseNavigationFormat format = positionsModel.getRoute().getFormat();
            clipboardInteractor.putIntoClipboard(new PositionSelection(copy(positionsModel.getPositions(selectedRows)), format));
        }
    }
View Full Code Here

TOP

Related Classes of slash.navigation.base.BaseNavigationFormat

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.