Package pl.net.bluesoft.rnd.pt.dict.global.xml

Examples of pl.net.bluesoft.rnd.pt.dict.global.xml.ProcessDictionaries


        InputStream is = loadResourceAsStream("global-dictionaries.xml");
        if (is == null) {
            throw new IllegalArgumentException("Global dictionaries XML not found!");
        }
        Properties properties = loadProperties("plugin.properties");
        ProcessDictionaries dictionaries = (ProcessDictionaries) DictionaryLoader.getInstance().unmarshall(is);
        for (Dictionary dictionary : dictionaries.getDictionaries()) {
            String dictionaryId = dictionary.getDictionaryId();
            dictionaryNames.add(dictionaryId);
            registry.registerI18NProvider(new GlobalDictionaryI18NProvider(dictionaryId, registry, properties), getDictionaryProviderId(dictionaryId));
        }
    }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.pt.dict.global.xml.ProcessDictionaries

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.