コード例 #1
0
    @NotNull
    public ResolveResult[] multiResolve(boolean incompleteCode) {
      Collection<PsiMethod> resMethods =
          StripesReferenceUtil.getResolutionMethodsAsList(actionBeanClass);
      ResolveResult[] retval = new ResolveResult[resMethods.size()];
      int i = 0;
      for (PsiMethod method : resMethods) {
        retval[i++] = new PsiElementResolveResult(method);
      }

      return retval;
    }
コード例 #2
0
    @NotNull
    public PsiReference[] getReferencesByElement(
        @NotNull PsiElement element, @NotNull ProcessingContext context) {
      if (EVENT_NAME.equals(ElementManipulators.getValueText(element))) {
        return PsiReference.EMPTY_ARRAY;
      }

      XmlTag tag = (XmlTag) element.getParent().getParent();
      final PsiClass actionBeanPsiClass =
          StripesReferenceUtil.getBeanClassFromParentTag(tag, parentTagName);

      return actionBeanPsiClass == null
          ? PsiReference.EMPTY_ARRAY
          : new SetterReferenceExSet(element, 1, '.', actionBeanPsiClass, true).getPsiReferences();
    }