Package com.intellij.struts2.dom.struts.constant

Examples of com.intellij.struts2.dom.struts.constant.Constant


      // 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


        return customReferences;
      }
    }

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

      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

      }
    }

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

  @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

    registerTags(ACTION_REFERENCE_PROVIDER,
                 "name", registrar,
                 "action");

    registerTags(new ActionMethodReferenceProvider(),
                 "method", registrar,
                 "a", "reset", "submit", "url");

    // elements with "value" (relative path)
    registerTags(RELATIVE_PATH_PROVIDER,
View Full Code Here

    registerTags(RELATIVE_PATH_PROVIDER,
                 "value", registrar,
                 "include", "url");

    // elements with "namespace"
    registerTags(new NamespaceReferenceProvider(),
                 "namespace", registrar,
                 "a", "action", "form", "url");

    // CSS classes
    registerTags(CSS_CLASS_PROVIDER,
View Full Code Here

  @Override
  public void registerReferenceProviders(@NotNull final PsiReferenceRegistrar registrar) {
    // common attributes --------------------------------------

    registerTags(new ThemeReferenceProvider(),
                 "theme", registrar,
                 TAGLIB_UI_FORM_TAGS);

    registerBoolean("disabled", registrar, TAGLIB_UI_FORM_TAGS);
View Full Code Here

   * @param registrar Registrar.
   */
  private void registerWebXml(final PsiReferenceRegistrar registrar) {
    registrar.registerReferenceProvider(
        xmlTag().withLocalName("param-name").and(WEB_XML_STRUTS_FILTER),
        new WebXmlStrutsConstantNameReferenceProvider());

    registrar.registerReferenceProvider(
        xmlTag().withLocalName("param-value").and(WEB_XML_STRUTS_FILTER),
        new WebXmlStrutsConstantValueReferenceProvider());
  }
View Full Code Here

        xmlTag().withLocalName("param-name").and(WEB_XML_STRUTS_FILTER),
        new WebXmlStrutsConstantNameReferenceProvider());

    registrar.registerReferenceProvider(
        xmlTag().withLocalName("param-value").and(WEB_XML_STRUTS_FILTER),
        new WebXmlStrutsConstantValueReferenceProvider());
  }
View Full Code Here

TOP

Related Classes of com.intellij.struts2.dom.struts.constant.Constant

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.