mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
resource bundle editor: vfs listener merges events (IDEA-154188)
This commit is contained in:
+6
-1
@@ -122,13 +122,18 @@ public class PropertiesImplUtil extends PropertiesUtil {
|
||||
}
|
||||
|
||||
public static boolean isPropertiesFile(@NotNull VirtualFile file, @NotNull Project project) {
|
||||
return getPropertiesFile(PsiManager.getInstance(project).findFile(file)) != null;
|
||||
return getPropertiesFile(file, project) != null;
|
||||
}
|
||||
|
||||
public static boolean isPropertiesFile(@Nullable PsiFile file) {
|
||||
return getPropertiesFile(file) != null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static PropertiesFile getPropertiesFile(@NotNull VirtualFile file, @NotNull Project project) {
|
||||
return getPropertiesFile(PsiManager.getInstance(project).findFile(file));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static PropertiesFile getPropertiesFile(@Nullable PsiFile file) {
|
||||
if (!canBePropertyFile(file)) return null;
|
||||
|
||||
Reference in New Issue
Block a user