compilerSettings.getCompileType(), false);
}
}
public void update(AnActionEvent e) {
SourceCodeFile virtualFile = getSourcecodeFile(e);
Presentation presentation = e.getPresentation();
if (virtualFile == null) {
presentation.setEnabled(false);
} else {
DBSchemaObject schemaObject = virtualFile.getObject();
if (schemaObject != null) {
DatabaseCompatibilityInterface compatibilityInterface = DatabaseCompatibilityInterface.getInstance(schemaObject);
if (schemaObject.getProperties().is(DBObjectProperty.COMPILABLE) && compatibilityInterface.supportsFeature(DatabaseFeature.OBJECT_INVALIDATION)) {
CompilerSettings compilerSettings = getCompilerSettings(schemaObject.getProject());
CompileType compileType = compilerSettings.getCompileType();
DBObjectStatusHolder status = schemaObject.getStatus();
DBContentType contentType = virtualFile.getContentType();
boolean isDebug = compileType == CompileType.DEBUG;
if (compileType == CompileType.KEEP) {
isDebug = status.is(contentType, DBObjectStatus.DEBUG);
}