Package com.dubture.symfony.core.model

Examples of com.dubture.symfony.core.model.Template


           
            if (templates != null) {               
                for (IModelElement tpl : templates) {

                    if (CodeAssistUtils.startsWithIgnoreCase(tpl.getElementName(), prefix)) {
                        Template t = new Template((ModelElement) tpl, tpl.getElementName());
                        reporter.reportType(t, "", range);
                    }
                   
                }
            }
           
        // project root: "::|
        } else if (bundle == null && controller == null && template != null) {

            IModelElement[] templates = model.findRootTemplates(project);
           
            if (templates != null) {               
                for (IModelElement tpl : templates) {
                   
                    if (CodeAssistUtils.startsWithIgnoreCase(tpl.getElementName(), prefix)) {
                        Template t = new Template((ModelElement) tpl, tpl.getElementName());
                        reporter.reportType(t, "", range);
                    }
                   
                }
            }
           
        // bundle root: "AcmeDemoBundle::|
        } else if (bundle != null && controller == null && template != null) {
           
            IModelElement[] templates = model.findBundleRootTemplates(bundle, project);
           
            if (templates != null) {               
                for (IModelElement tpl : templates) {
                   
                    if (CodeAssistUtils.startsWithIgnoreCase(tpl.getElementName(), prefix)) {
                        Template t = new Template((ModelElement) tpl, tpl.getElementName());
                        reporter.reportType(t, "", range);
                    }                  
                }
            }
        }     
View Full Code Here

TOP

Related Classes of com.dubture.symfony.core.model.Template

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.