Package org.jab.docsearch.utils

Examples of org.jab.docsearch.utils.DocTypeHandlerUtils


            handlersFiName = FileUtils.addFolder(fEnv.getWorkingDirectory(), DocTypeHandlerUtils.HANDLER_FILE);
        }
        else {
            handlersFiName = FileUtils.addFolder(cdRomDefaultHome, DocTypeHandlerUtils. HANDLER_FILE);
        }
        DocTypeHandlerUtils dthUtils = new DocTypeHandlerUtils();
        if (! FileUtils.fileExists(handlersFiName)) {
            logger.warn("DocSearch() Handlers file not found at: " + handlersFiName);
            handlerList = dthUtils.getInitialHandler(env);
        }
        else {
          handlerList = dthUtils.loadHandler(handlersFiName);
        }
    }
View Full Code Here


    private void doExit() {
        try {
            if (! isCDSearchTool) {
                saveIndexes();
                new DocTypeHandlerUtils().saveHandler(fEnv, handlerList);
                saveSettings();
            }
        }
        catch (Exception eR) {
            showMessage(dsErrSaFi, eR.toString());
View Full Code Here

            showMessage(I18n.getString("not_externally_viewable"), I18n.getString("not_externally_viewable_message"));
            return;
        }

        // get handler of link
        String app = new DocTypeHandlerUtils().hasHandler(handlerList, externalLink);

        // special handling of file
        if (lowerL.startsWith("file:/")) {
            // remove "file:/"
          externalLink = externalLink.substring(6, externalLink.length());
View Full Code Here

TOP

Related Classes of org.jab.docsearch.utils.DocTypeHandlerUtils

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.