Package wicketforge.psi.hierarchy

Examples of wicketforge.psi.hierarchy.MarkupWicketIdItem


                                    PsiFile markup = MarkupIndex.getBaseFile(psiClass);
                                    if (markup != null) {
                                        // ... before we search for our parent Item
                                        String parentPath = HierarchyUtil.findPathOf(psiClass, wicketIdExpression, true, true);
                                        if (parentPath != null) {
                                            MarkupWicketIdItem item = MarkupWicketIdHierarchy.create((XmlFile) markup).getWicketIdPathMap().get(parentPath);
                                            if (item != null) {
                                                for (MarkupWicketIdItem child : item.getChildren()) {
                                                    rs.addElement(
                                                            LookupElementBuilder.create(child.getWicketId())
                                                                    //.withIcon(child.getIcon()) // child's icon bother view -> use generic icon
                                                                    .withIcon(Constants.WICKET_COMPONENT_ICON)
                                                                    .withTypeText(".html")
View Full Code Here


        PsiFile markupFile = MarkupIndex.getBaseFile(psiClass);
        if (markupFile != null) {
            String path = HierarchyUtil.findPathOf(psiClass, wicketIdExpression, false, false);
            if (path != null) {
                MarkupWicketIdHierarchy hierarchy = MarkupWicketIdHierarchy.create((XmlFile) markupFile);
                MarkupWicketIdItem item = hierarchy.getWicketIdPathMap().get(path);
                if (item != null) {
                    return item.getAttributeValue();
                }
            }
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of wicketforge.psi.hierarchy.MarkupWicketIdItem

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.