Examples of ManifestToken


Examples of org.jetbrains.lang.manifest.psi.ManifestToken

  private static final String USES_DIRECTIVE = "uses";

  private static boolean isPackageRef(final PsiElement element) {
    final boolean result;
    if (element instanceof ManifestToken) {
      ManifestToken manifestToken = (ManifestToken)element;
      result = manifestToken.getTokenType() != ManifestTokenType.SEMICOLON;
    }
    else {
      result = true;
    }
View Full Code Here

Examples of org.jetbrains.lang.manifest.psi.ManifestToken

      Attribute attribute = (Attribute)headerValuePart.getParent();
      if (USES_DIRECTIVE.equals(attribute.getName()) && !USES_DIRECTIVE.equals(headerValuePart.getUnwrappedText())) {
        List<PsiReference> references = ContainerUtil.newArrayList();
        for (ASTNode astNode : headerValuePart.getNode().getChildren(TokenSet.create(ManifestTokenType.HEADER_VALUE_PART))) {
          if (astNode instanceof ManifestToken) {
            ManifestToken manifestToken = (ManifestToken)astNode;
            ContainerUtil.addAll(references, getPackageReferences(manifestToken));
          }
        }
        return ContainerUtilRt.toArray(references, new PsiReference[references.size()]);
      }
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.