boolean isPresent = status.is(contentType, DBObjectStatus.PRESENT);
boolean isValid = status.is(contentType, DBObjectStatus.VALID);
//boolean isDebug = status.is(contentType, DBObjectStatus.DEBUG);
boolean isCompiling = status.is(contentType, DBObjectStatus.COMPILING);
boolean isEnabled = isPresent && !isCompiling && (compilerSettings.alwaysShowCompilerControls() || !isValid/* || isDebug != isDebugActive*/);
presentation.setEnabled(isEnabled);
String text =
contentType == DBContentType.CODE_SPEC ? "Compile spec" :