Java 类com.intellij.lang.properties.references.I18nUtil 实例源码

项目:intellij-ce-playground    文件:InvalidPropertyKeyInspection.java   
private static void appendPropertyKeyNotFoundProblem(@NotNull String bundleName,
                                                     @NotNull String key,
                                                     @NotNull PsiExpression expression,
                                                     @NotNull InspectionManager manager,
                                                     @NotNull List<ProblemDescriptor> problems,
                                                     boolean onTheFly) {
  final String description = CodeInsightBundle.message("inspection.unresolved.property.key.reference.message", key);
  final List<PropertiesFile> propertiesFiles = filterNotInLibrary(expression.getProject(),
                                                                  I18nUtil.propertiesFilesByBundleName(bundleName, expression));
  problems.add(
    manager.createProblemDescriptor(
      expression,
      description,
      propertiesFiles.isEmpty() ? null : new JavaCreatePropertyFix(expression, key, propertiesFiles),
      ProblemHighlightType.LIKE_UNKNOWN_SYMBOL, onTheFly
    )
  );
}
项目:intellij-ce-playground    文件:ResourceBundleManager.java   
public List<String> suggestPropertiesFiles(){
  return I18nUtil.defaultSuggestPropertiesFiles(myProject);
}
项目:tools-idea    文件:ResourceBundleManager.java   
public List<String> suggestPropertiesFiles(){
  return I18nUtil.defaultGetPropertyFiles(myProject);
}
项目:consulo-java    文件:ResourceBundleManager.java   
public List<String> suggestPropertiesFiles(){
  return I18nUtil.defaultGetPropertyFiles(myProject);
}