Package org.openide.modules

Examples of org.openide.modules.InstalledFileLocator


       
        return userDir;*/
       
        URL url;
        try {
            InstalledFileLocator locator = InstalledFileLocator.getDefault();
            File directory = locator.locate("modules/lib", "org.tod", false);
            return directory.getAbsolutePath() + File.separator;
        } catch (Exception ex) {
            Logger.getLogger(TODUtils.class.getName()).log(Level.SEVERE, null, ex);
        }
       
View Full Code Here


     * The location of TOD's JAR files.
     * @return the library path
     */
    public static String getTODJARPath() {
        try {
            InstalledFileLocator locator = InstalledFileLocator.getDefault();
            File directory = locator.locate("modules/ext", "org.tod", false);
            return directory.getAbsolutePath() + File.separator;
        } catch (Exception ex) {
            Logger.getLogger(TODUtils.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
View Full Code Here

TOP

Related Classes of org.openide.modules.InstalledFileLocator

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.