Package com.intellij.psi.jsp

Examples of com.intellij.psi.jsp.WebDirectoryElement


            // 1. add all configured web root mappings
            final List<WebRoot> webRoots = webFacet.getWebRoots(true);
            for (final WebRoot webRoot : webRoots) {
              final String webRootPath = webRoot.getRelativePath();
              final WebDirectoryElement webRootBase =
                  directoryUtil.findWebDirectoryElementByPath(webRootPath, webFacet);
              ContainerUtil.addIfNotNull(webRootBase, basePathRoots);
            }

            // 2. add parent <package> "namespace" as result prefix directory path if not ROOT
            if (!Comparing.equal(namespace, StrutsPackage.DEFAULT_NAMESPACE)) {
              final WebDirectoryElement packageBase =
                  directoryUtil.findWebDirectoryElementByPath(namespace, webFacet);
              ContainerUtil.addIfNotNull(packageBase, basePathRoots);
            }

            return basePathRoots;
View Full Code Here


  public void testResolveActionValue() throws Exception {
    myFixture.copyFileToProject("/WEB-INF/customContent/test.jsp");
    myFixture.copyFileToProject("jam/ActionValue.java");

    final JamResultPath jamResultPath = getClassJam("jam.ActionValue", JamResultPath.META_CLASS);
    final WebDirectoryElement webDirectoryElement = jamResultPath.getValue().getValue();
    assertNotNull(webDirectoryElement);
    assertEquals("/WEB-INF/customContent", webDirectoryElement.getPath());
  }
View Full Code Here

TOP

Related Classes of com.intellij.psi.jsp.WebDirectoryElement

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.