Package org.apache.roller.weblogger.pojos

Examples of org.apache.roller.weblogger.pojos.Theme


        }

        // now go through each theme and load it into a Theme object
        for (int i = 0; i < themenames.length; i++) {
            try {
                Theme theme = new SharedThemeFromDir(this.themeDir + File.separator + themenames[i]);
                if (theme != null) {
                    themeMap.put(theme.getId(), theme);
                }
            } catch (Throwable unexpected) {
                // shouldn't happen, so let's learn why it did
                log.error("Problem reading theme " + themenames[i], unexpected);
            }
View Full Code Here


        boolean reloaded = false;

        try {

            Theme theme = new SharedThemeFromDir(this.themeDir + File.separator
                    + reloadTheme);

            if (theme != null) {

                Theme loadedTheme = (Theme) themes.get(theme.getId());

                if (loadedTheme != null
                        && theme.getLastModified().after(loadedTheme.getLastModified())) {
                    themes.remove(theme.getId());
                    themes.put(theme.getId(), theme);
                    reloaded = true;
                }
View Full Code Here

TOP

Related Classes of org.apache.roller.weblogger.pojos.Theme

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.