Examples of BeanPropertyPathReferenceSet


Examples of com.intellij.struts2.reference.common.BeanPropertyPathReferenceSet

      // we only "fake" OGNL here, skip method call expressions for now
      if (StringUtil.containsChar(expressionString, '(')) {
        continue;
      }

      final BeanPropertyPathReferenceSet propertyPathReferenceSet =
        new BeanPropertyPathReferenceSet(expressionString,
                                         psiElement,
                                         startOffset,
                                         '.',
                                         actionClass,
                                         true) {

          // CTOR creates references eagerly, so we have to subclass here
          @Override
          public boolean isSoft() {
            return false;
          }

          @NotNull
          @Override
          protected BeanPropertyPathReference createReference(final TextRange range, final int index) {
            final TextRange shift = TextRange.from(range.getStartOffset() + tagValueStartOffset,
                                                   range.getLength()); // shift range to XmlTag value range
            return createBeanPropertyPathReference(shift, index);
          }
        };

      references = ArrayUtil.mergeArrays(references, propertyPathReferenceSet.getPsiReferences());
    }

    return references;
  }
View Full Code Here

Examples of com.intellij.struts2.reference.common.BeanPropertyPathReferenceSet

        return customReferences;
      }
    }

    final PsiClass rootPsiClass = findBeanPropertyClass(paramsElement);
    return new BeanPropertyPathReferenceSet(psiElement, rootPsiClass, false).getPsiReferences();
  }
View Full Code Here

Examples of com.intellij.struts2.reference.common.BeanPropertyPathReferenceSet

      return ArrayUtil.toObjectArray(customReferences, PsiReference.class);
    }

    final String propertyText = text.substring(idx + 1, text.length());
    final PsiClass paramsClass = resolvedInterceptorRef.getParamsClass();
    final BeanPropertyPathReferenceSet beanPropertyPathReferenceSet =
        new BeanPropertyPathReferenceSet(propertyText, nameAttributeValue, idx + 2, '.', paramsClass, false);

    Collections.addAll(customReferences, beanPropertyPathReferenceSet.getPsiReferences());

    return ArrayUtil.toObjectArray(customReferences, PsiReference.class);
  }
View Full Code Here

Examples of com.intellij.struts2.reference.common.BeanPropertyPathReferenceSet

      }
    }

    private static BeanPropertyPathReference[] getBeanPropertyReferences(XmlAttributeValue element,
                                                                         ParamsElement paramsElement) {
      return new BeanPropertyPathReferenceSet(element, paramsElement.getParamsClass(), false).getPsiReferences();
    }
View Full Code Here

Examples of com.intellij.struts2.reference.common.BeanPropertyPathReferenceSet

  @NotNull
  public PsiReference[] createReferences(final GenericDomValue<List<BeanProperty>> listGenericDomValue,
                                         final PsiElement psiElement,
                                         final ConvertContext convertContext) {
    final PsiClass actionClass = findBeanPropertyClass(convertContext.getInvocationElement());
    return new BeanPropertyPathReferenceSet(psiElement, actionClass, false).getPsiReferences();
  }
View Full Code Here

Examples of com.intellij.struts2.reference.common.BeanPropertyPathReferenceSet

    if (actions.size() != 1) {
      return PsiReference.EMPTY_ARRAY;
    }

    final Action action = actions.get(0);
    return new BeanPropertyPathReferenceSet(psiElement, action.searchActionClass(), supportsReadOnlyProperties) {

      // TODO CTOR creates references eagerly, so we have to subclass here
      @Override
      public boolean isSoft() {
        return false;
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.