Package net.datacrow.util.launcher

Examples of net.datacrow.util.launcher.FileLauncher


    }
   
    private void launch() {
        if (!Utilities.isEmpty(text.getText())) {
            String filename = Utilities.getMappedFilename(text.getText());
            new FileLauncher(filename).launch();
        }
    }
View Full Code Here


    private void showResults() {
      File file = fileField.getFile();
        if (file != null && file.exists()) {
            try {
              FileLauncher launcher = new FileLauncher(file);
              launcher.launch();
            } catch (Exception e) {
                String msg = DcResources.getText("msgErrorWhileOpeningX", new String[] {file.toString(), e.getMessage()});
                DcSwingUtilities.displayWarningMessage(msg);
                logger.error(msg, e);
            }
View Full Code Here

           
            if (url.getProtocol().equals("file")) {
                String file = url.getFile();
                file = file.replaceAll("%20", " ");
                //file = file.substring(1);
                new FileLauncher(file).launch();
            } else if (query == null || !query.contains("module=")) {
                try {
                  URLLauncher launcher = new URLLauncher(url);
                  launcher.launch();
                } catch (Exception exp) {
View Full Code Here

TOP

Related Classes of net.datacrow.util.launcher.FileLauncher

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.