Search in sources :

Example 1 with FileIncludeManager

use of com.intellij.psi.impl.include.FileIncludeManager in project intellij-community by JetBrains.

the class FilePathResolveTest method testResolveFileReference.

public void testResolveFileReference() throws Exception {
    configureByFile(BASE_PATH + "C.java", BASE_PATH);
    FileIncludeManager fileIncludeManager = FileIncludeManager.getManager(getProject());
    PsiFileSystemItem item = fileIncludeManager.resolveFileInclude(new FileIncludeInfo("x/MyFile.txt"), getFile());
    assertNotNull(item);
    assertEquals("MyFile.txt", item.getName());
}
Also used : FileIncludeInfo(com.intellij.psi.impl.include.FileIncludeInfo) FileIncludeManager(com.intellij.psi.impl.include.FileIncludeManager) PsiFileSystemItem(com.intellij.psi.PsiFileSystemItem)

Aggregations

PsiFileSystemItem (com.intellij.psi.PsiFileSystemItem)1 FileIncludeInfo (com.intellij.psi.impl.include.FileIncludeInfo)1 FileIncludeManager (com.intellij.psi.impl.include.FileIncludeManager)1