Java Code Examples for com.intellij.util.PathUtil#getLocalFile()
The following examples show how to use
com.intellij.util.PathUtil#getLocalFile() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PsiDirectoryNode.java From consulo with Apache License 2.0 | 6 votes |
@Override public boolean contains(@Nonnull VirtualFile file) { final PsiDirectory value = getValue(); if (value == null) { return false; } VirtualFile directory = value.getVirtualFile(); if (directory.getFileSystem() instanceof LocalFileSystem) { file = PathUtil.getLocalFile(file); } if (!VfsUtilCore.isAncestor(directory, file, false)) { return false; } return !FileTypeRegistry.getInstance().isFileIgnored(file); }
Example 2
Source File: ModuleDependenciesAnalyzer.java From consulo with Apache License 2.0 | 5 votes |
/** * @return the local file */ @Nullable public VirtualFile getLocalFile() { VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(myUrl); if (file != null) { file = PathUtil.getLocalFile(file); } return file; }