Examples of ThemeManager


Examples of at.bestsolution.efxclipse.runtime.services.theme.ThemeManager

    // FIXME Remove once bug 314091 is resolved
    Bundle bundle = FrameworkUtil.getBundle(getClass());
    BundleContext context = bundle.getBundleContext();

    ServiceReference reference = context.getServiceReference(ThemeManager.class.getName());
    ThemeManager themeManager = (ThemeManager) context.getService(reference);

    List<Theme> themes = themeManager.getAvailableThemes();
    if (themes.size() > 0) {
      MApplication application = getApplication();

      MCommand switchThemeCommand = null;
      for (MCommand cmd : application.getCommands()) {
View Full Code Here

Examples of de.matthiasmann.twl.theme.ThemeManager

    protected void initGUI() throws SlickException {
        GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
        try {
            Renderer renderer = new LWJGLRenderer();
            ThemeManager theme = loadTheme(renderer);

            gui = new GUI(emptyRootWidget, renderer, null);
            gui.applyTheme(theme);

            Input input = getContainer().getInput();
View Full Code Here

Examples of org.apache.roller.business.ThemeManager

       
        // first check if this user has selected a theme
        // if so then return the themes Weblog template
        if(this.editorTheme != null && !this.editorTheme.equals(Theme.CUSTOM)) {
            try {
                ThemeManager themeMgr = RollerFactory.getRoller().getThemeManager();
                Theme usersTheme = themeMgr.getTheme(this.editorTheme);
               
                // this is a bit iffy :/
                // we assume that all theme use "Weblog" for a default template
                template = usersTheme.getTemplate("Weblog");
               
View Full Code Here

Examples of org.apache.roller.business.ThemeManager

           
            // only continue if this looks like a theme id
            // and the theme name matches this users current theme
            if(split.length == 2 && split[0].equals(this.editorTheme)) {
                try {
                    ThemeManager themeMgr = RollerFactory.getRoller().getThemeManager();
                    Theme usersTheme = themeMgr.getTheme(this.editorTheme);
                    template = usersTheme.getTemplate(split[1]);
                   
                } catch(ThemeNotFoundException tnfe) {
                    // i sure hope not!
                    log.error(tnfe);
View Full Code Here

Examples of org.apache.roller.business.ThemeManager

        // first check if this user has selected a theme
        // if so then return the proper theme template
        if(this.editorTheme != null && !this.editorTheme.equals(Theme.CUSTOM)) {
           
            try {
                ThemeManager themeMgr = RollerFactory.getRoller().getThemeManager();
                Theme usersTheme = themeMgr.getTheme(this.editorTheme);
                template = usersTheme.getTemplate(name);
               
            } catch(ThemeNotFoundException tnfe) {
                // i sure hope not!
                log.error(tnfe);
View Full Code Here

Examples of org.apache.roller.business.ThemeManager

        // first check if this user has selected a theme
        // if so then return the proper theme template
        if(this.editorTheme != null && !this.editorTheme.equals(Theme.CUSTOM)) {
           
            try {
                ThemeManager themeMgr = RollerFactory.getRoller().getThemeManager();
                Theme usersTheme = themeMgr.getTheme(this.editorTheme);
                template = usersTheme.getTemplateByLink(link);
               
            } catch(ThemeNotFoundException tnfe) {
                // i sure hope not!
                log.error(tnfe);
View Full Code Here

Examples of org.apache.roller.business.ThemeManager

       
        // now get theme pages if needed and put them in place of db pages
        if (this.editorTheme != null && !this.editorTheme.equals(Theme.CUSTOM)) {
            try {
                Template template = null;
                ThemeManager themeMgr = RollerFactory.getRoller().getThemeManager();
                Theme usersTheme = themeMgr.getTheme(this.editorTheme);
                Iterator themePages = usersTheme.getTemplates().iterator();
                while(themePages.hasNext()) {
                    template = (Template) themePages.next();
                   
                    // note that this will put theme pages over custom
View Full Code Here

Examples of org.apache.roller.business.ThemeManager

        }
       
        // second, see if resource comes from weblog's configured shared theme
        if(resourceStream == null && !Theme.CUSTOM.equals(weblog.getEditorTheme())) {
            try {
                ThemeManager themeMgr = RollerFactory.getRoller().getThemeManager();
                Theme weblogTheme = themeMgr.getTheme(weblog.getEditorTheme());
                File resource = weblogTheme.getResource(resourceRequest.getResourcePath());
                if(resource != null) {
                    resourceLastMod = resource.lastModified();
                    resourceStream = new FileInputStream(resource);
                }
View Full Code Here

Examples of org.apache.roller.business.ThemeManager

        InputStream resourceStream = null;
       
        // first see if resource comes from weblog's shared theme
        if(!Theme.CUSTOM.equals(weblog.getEditorTheme())) {
            try {
                ThemeManager themeMgr = RollerFactory.getRoller().getThemeManager();
                Theme weblogTheme = themeMgr.getTheme(weblog.getEditorTheme());
                File resource = weblogTheme.getResource(resourceRequest.getResourcePath());
                if(resource != null) {
                    resourceLastMod = resource.lastModified();
                    resourceStream = new FileInputStream(resource);
                }
View Full Code Here

Examples of org.apache.roller.business.ThemeManager

    public Theme getTheme() {
       
        if(theme == null && themeName != null) {
            try {
                ThemeManager themeMgr = RollerFactory.getRoller().getThemeManager();
                theme = themeMgr.getTheme(themeName);
            } catch(ThemeNotFoundException tnfe) {
                // bogus theme specified ... don't worry about it
            } catch(RollerException re) {
                log.error("Error looking up theme "+themeName, re);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.