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 ) ); }
public List<String> suggestPropertiesFiles(){ return I18nUtil.defaultSuggestPropertiesFiles(myProject); }
public List<String> suggestPropertiesFiles(){ return I18nUtil.defaultGetPropertyFiles(myProject); }