private void addPropertiesFilesOptions() {
List<Object> data = new ArrayList<Object>();
{ // find component class properties file
PropertiesFile propertiesFile = PropertiesIndex.getBaseFile(componentClass);
if (propertiesFile == null) {
data.add(new NewPropertiesFileInfo(componentClass, Constants.PropertiesType.PROPERTIES));
data.add(new NewPropertiesFileInfo(componentClass, Constants.PropertiesType.XML));
} else {
data.add(propertiesFile);
}
}
{ // find and add application properties file
PsiClass appClass = WicketPsiUtil.findWicketApplicationClass(project);
if (appClass != null) {
PropertiesFile propertiesFile = PropertiesIndex.getBaseFile(appClass);
if (propertiesFile != null) {
data.add(propertiesFile);
}
}
}