[runtime product] API cleanup: remove ProductMode.NOVA value (IJPL-797)

ProductMode class is in platform code, it isn't supposed to contain things related to specific products. Also, this new field isn't returned from ProductLoadingStrategy as the other. It was used in StatisticsEventLogger only, and that usage is now inlined.

GitOrigin-RevId: deab69580a7c2b32314f709d18efa838d2f544d5
This commit is contained in:
Nikolay Chashnikov
2024-07-03 09:35:32 +02:00
committed by intellij-monorepo-bot
parent 003d3201c3
commit 1ce4687f96
3 changed files with 2 additions and 8 deletions

View File

@@ -16,7 +16,6 @@
- sf:BACKEND:com.intellij.platform.runtime.product.ProductMode
- sf:FRONTEND:com.intellij.platform.runtime.product.ProductMode
- sf:LOCAL_IDE:com.intellij.platform.runtime.product.ProductMode
- sf:NOVA:com.intellij.platform.runtime.product.ProductMode
- getId():java.lang.String
- s:valueOf(java.lang.String):com.intellij.platform.runtime.product.ProductMode
- s:values():com.intellij.platform.runtime.product.ProductMode[]

View File

@@ -22,12 +22,7 @@ public enum ProductMode {
* Indicates that this process doesn't perform heavy tasks like code analysis, and takes necessary information from another process.
* Currently, this is used by JetBrains Client process connected to a remote development host or CodeWithMe session.
*/
BACKEND("backend"),
/**
* Use the special mode 'nova' to report CLion nova (radler) engine, for local ide only.
*/
NOVA("nova");
BACKEND("backend");
private final String myId;

View File

@@ -122,7 +122,7 @@ abstract class StatisticsEventLoggerProvider(val recorderId: String,
val productMode = if (currentProductModeId != ProductMode.LOCAL_IDE.id) {
currentProductModeId
} else if (detectClionNova()) {
ProductMode.NOVA.id
"nova"
} else {
null
}