Package net.datacrow.console.windows.drivemanager

Examples of net.datacrow.console.windows.drivemanager.DriveManagerSingleItemMatcher


   
    private void locateFile(final int precision) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                DriveManagerSingleItemMatcher matcher =
                    new DriveManagerSingleItemMatcher(dco, precision);
                matcher.start();
                try {
                    matcher.join();
                } catch (InterruptedException e) {
                    logger.error(e, e);
                }
               
                FileInfo info = matcher.getResult();
                if (info != null) {
                    dco.setValue(dco.getFileField().getIndex(), info.getFilename());
                    try {
                        dco.saveUpdate(true, false);
                    } catch (ValidationException ve) {}
View Full Code Here


   
    private void locateFile(final int precision) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                DriveManagerSingleItemMatcher matcher =
                    new DriveManagerSingleItemMatcher(parent.getOriginalItem(), precision);
                matcher.start();
                try {
                    matcher.join();
                } catch (InterruptedException e) {
                    logger.error(e, e);
                }
               
                FileInfo info = matcher.getResult();
                if (info != null)
                    setFile(new File(info.getFilename()));
            }
        }).start();       
    }
View Full Code Here

TOP

Related Classes of net.datacrow.console.windows.drivemanager.DriveManagerSingleItemMatcher

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.