fileOverride = new FileOverride();
project.addFileOverride(projectFile, fileOverride);
}
- fileOverride.setContentType(MimeTypes.getMimeType(getFileExtension(projectFile.getName())));
+ String projectFileName = projectFile.getName();
+ String mimeType = MimeTypes.getMimeType(getFileExtension(projectFileName));
+ fileOverride.setContentType(mimeType);
+ fillComboBox(projectFileName);
+ contentTypeOverrideComboBox.setSelectedItem(mimeType);
} else {
fileOverride.setContentType(null);
if (fileOverride.isEmpty()) {