mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[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:
committed by
intellij-monorepo-bot
parent
003d3201c3
commit
1ce4687f96
@@ -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[]
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user