}
}
}
else if (contentType.isOneOf(DBContentType.CODE, DBContentType.CODE_SPEC_AND_BODY)) {
DDLFileGeneralSettings ddlFileSettings = DDLFileSettings.getInstance(project).getGeneralSettings();
ConnectionHandler connectionHandler = object.getConnectionHandler();
boolean ddlFileBinding = connectionHandler.getSettings().getDetailSettings().isDdlFileBinding();
if (ddlFileBinding && ddlFileSettings.getLookupDDLFilesEnabled().value()) {
List<VirtualFile> boundDDLFiles = getBoundDDLFiles();
if (boundDDLFiles == null || boundDDLFiles.isEmpty()) {
DDLFileAttachmentManager fileAttachmentManager = DDLFileAttachmentManager.getInstance(project);
List<VirtualFile> virtualFiles = fileAttachmentManager.lookupUnboundDDLFiles(object);
if (virtualFiles.size() > 0) {
int exitCode = fileAttachmentManager.showFileAttachDialog(object, virtualFiles, true);
return exitCode != DialogWrapper.CANCEL_EXIT_CODE;
} else if (ddlFileSettings.getCreateDDLFilesEnabled().value()) {
int exitCode = Messages.showYesNoDialog(
"Could not find any DDL file for " + object.getQualifiedNameWithType() + ". Do you want to create one? \n" +
"(You can disable this check in \"DDL File\" options)",
Constants.DBN_TITLE_PREFIX + "No DDL file found", Messages.getQuestionIcon());
if (exitCode == DialogWrapper.OK_EXIT_CODE) {