Package wicketforge.psi.hierarchy

Examples of wicketforge.psi.hierarchy.ClassWicketIdItem


                            PsiClass clazz = ClassIndex.getAssociatedClass(f);
                            if (clazz != null) {
                                // ... before we search for our parent Item
                                String parentPath = HierarchyUtil.findPathOf(wicketIdAttribute, true);
                                if (parentPath != null) {
                                    ClassWicketIdItem item = ClassWicketIdHierarchy.create(clazz).getWicketIdPathMap().get(parentPath);
                                    if (item != null) {
                                        for (ClassWicketIdItem 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(".java")
View Full Code Here


    @NotNull
    public ResolveResult[] multiResolve(boolean incompleteCode) {
        String path = HierarchyUtil.findPathOf(attributeValue, false);
        if (path != null) {
            ClassWicketIdHierarchy hierarchy = ClassWicketIdHierarchy.create(psiClass);
            ClassWicketIdItem item = hierarchy.getWicketIdPathMap().get(path);
            if (item != null) {
                final List<PsiElementResolveResult> list = new SmartList<PsiElementResolveResult>();
                for (ClassWicketIdNewComponentItem newComponentItem : item.getNewComponentItems()) {
                    list.add(new PsiElementResolveResult(newComponentItem.getWicketIdExpression()));
                }
                if (!list.isEmpty()) {
                    return list.toArray(new ResolveResult[list.size()]);
                }
View Full Code Here

TOP

Related Classes of wicketforge.psi.hierarchy.ClassWicketIdItem

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.