diff --git a/platform/platform-resources-en/src/messages/ActionsBundle.properties b/platform/platform-resources-en/src/messages/ActionsBundle.properties
index d3f8c2fab098..f1cdaa6afd4a 100644
--- a/platform/platform-resources-en/src/messages/ActionsBundle.properties
+++ b/platform/platform-resources-en/src/messages/ActionsBundle.properties
@@ -2299,26 +2299,26 @@ action.$Redo.text=Redo
action.$Undo.text=Undo
group.Vcs.KeymapGroup.text=Version Control Systems
group.InspectCodeGroup.text=Inspect Code Actions
-action.ConfigureWhitelistAction.text=Configure Whitelist
-action.ConfigureWhitelistAction.description=Configure whitelist from the custom folder
+action.ConfigureEventsSchemeFileAction.text=Configure Events Scheme File
+action.ConfigureEventsSchemeFileAction.description=Load Events Scheme from the custom folder
action.ShowStatisticsEventLogAction.text=Show Statistics Event Log
action.ShowStatisticsEventLogAction.description=Opens toolwindow with feature usage statistics event log
action.ReportSettingsToFUS.text=Record Changed Settings to Event Log
-action.CleanupLocalWhitelistAction.text=Clean Up Local Whitelist
-action.CleanupLocalWhitelistAction.description=Removes all groups from the local whitelist
+action.CleanupEventsTestSchemeAction.text=Clean Up Events Test Scheme
+action.CleanupEventsTestSchemeAction.description=Removes all groups registered in the test scheme
action.RecordStateCollectors.text=Record State Collectors to Event Log
action.RecordStateCollectors.description=Invokes all state collectors and records result to event log
action.ShowChangedStateStatisticsAction.text=Show Only Changed State Events
action.ShowChangedStateStatisticsAction.description=Invokes all state collectors and shows only changed events since previous record
-action.AddTestGroupToLocalWhitelistAction.text=Add Test Group to Local Whitelist
-action.AddTestGroupToLocalWhitelistAction.description=Allows all data from the group. Use it to test new collector locally.
-action.EditLocalWhitelistAction.text=Edit Local Whitelist
-action.EditLocalWhitelistAction.description=Allows all data from the group. Use it to test new collector locally.
+action.AddGroupToTestSchemeAction.text=Add Group to Events Test Scheme
+action.AddGroupToTestSchemeAction.description=Allows all data from the group. Use it to test new collector locally.
+action.EditTestSchemeAction.text=Edit Events Test Scheme
+action.EditTestSchemeAction.description=Allows all data from the group. Use it to test new collector locally.
group.OpenEventLogFileAction.text=Open Event Log in Editor
group.OpenEventLogFileAction.description=Opens active event log file in IDE
-group.OpenLocalWhitelistFileAction.description=Opens local whitelist file in IDE
-group.OpenWhitelistFileAction.description=Opens whitelist file in IDE
-group.UpdateWhitelistAction.description=Updates the main whitelist from the server if necessary. Also updates local whitelist from the file.
+group.OpenEventsTestSchemeFileAction.description=Opens events test scheme file in IDE
+group.OpenEventsSchemeFileAction.description=Opens events scheme file in IDE
+group.UpdateEventsSchemeAction.description=Updates the main events scheme from the server if necessary. Also re-loads events test scheme from the file.
action.SendEventLogStatistics.text=Send Feature Usage Event Log
action.SendEventLogStatistics.description=Sends event log files to qa server
group.FeatureUsage.Internal.text=Feature Usages Statistics
@@ -2331,7 +2331,7 @@ action.UsedIconsListing.text=List Used Icons
action.GenerateVisitorByHierarchy.text=Generate Hierarchy Visitor...
group.Internal.Java.text=Java
action.CollectFUStatisticsAction.text=Collect Statistics from Collector...
-action.TestParseEventLogWhitelistAction.text=Test Parsing Event Log Whitelist...
+action.TestParseEventsSchemeAction.text=Test Parsing Events Scheme...
action.ValidateLocalHistory.text=Validate Local History Storage
action.FixLineSeparators.text=Fix Line Separators
action.PruneEmptyDirectories.text=Prune Empty Directories
diff --git a/platform/statistics/devkit/resources/META-INF/statistics-devkit.xml b/platform/statistics/devkit/resources/META-INF/statistics-devkit.xml
index b836606eb568..b386e79b87b4 100644
--- a/platform/statistics/devkit/resources/META-INF/statistics-devkit.xml
+++ b/platform/statistics/devkit/resources/META-INF/statistics-devkit.xml
@@ -3,18 +3,18 @@
-
-
-
+
+
+
-
-
-
+
+
+
@@ -24,9 +24,9 @@
anchor="bottom" canCloseContents="true" order="last"/>
+ implementationClass="com.intellij.internal.statistic.actions.scheme.ValidationRulesCompletionContributor"/>
-
+
\ No newline at end of file
diff --git a/platform/statistics/devkit/resources/schemas/local-whitelist.schema.json b/platform/statistics/devkit/resources/schemas/events-test-scheme.schema.json
similarity index 88%
rename from platform/statistics/devkit/resources/schemas/local-whitelist.schema.json
rename to platform/statistics/devkit/resources/schemas/events-test-scheme.schema.json
index 8516c0b46eff..d7ab2ae150bf 100644
--- a/platform/statistics/devkit/resources/schemas/local-whitelist.schema.json
+++ b/platform/statistics/devkit/resources/schemas/events-test-scheme.schema.json
@@ -1,9 +1,9 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
- "$id": "https://jetbrains.com/local-whitelist.schema.json",
+ "$id": "https://jetbrains.com/events-test-scheme.schema.json",
"type": "object",
- "title": "Feature Usage Statistics Local Whitelist",
- "description": "Feature Usage Statistics Local Whitelist",
+ "title": "Feature Usage Statistics Test Scheme",
+ "description": "Feature Usage Statistics Test Scheme",
"required": [
"event_id",
"event_data"
diff --git a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/CleanupLocalWhitelistAction.kt b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/CleanupEventsTestSchemeAction.kt
similarity index 77%
rename from platform/statistics/devkit/src/com/intellij/internal/statistic/actions/CleanupLocalWhitelistAction.kt
rename to platform/statistics/devkit/src/com/intellij/internal/statistic/actions/CleanupEventsTestSchemeAction.kt
index dff7968e87d0..9aab6c0d34db 100644
--- a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/CleanupLocalWhitelistAction.kt
+++ b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/CleanupEventsTestSchemeAction.kt
@@ -10,15 +10,15 @@ import com.intellij.openapi.progress.ProgressManager
import com.intellij.openapi.progress.Task
import com.intellij.openapi.project.DumbAwareAction
-class CleanupLocalWhitelistAction(private val recorderId: String? = null)
- : DumbAwareAction(ActionsBundle.message("action.CleanupLocalWhitelistAction.text"),
- ActionsBundle.message("action.CleanupLocalWhitelistAction.description"),
+class CleanupEventsTestSchemeAction(private val recorderId: String? = null)
+ : DumbAwareAction(ActionsBundle.message("action.CleanupEventsTestSchemeAction.text"),
+ ActionsBundle.message("action.CleanupEventsTestSchemeAction.description"),
AllIcons.Actions.GC) {
override fun actionPerformed(e: AnActionEvent) {
val project = e.project ?: return
- ProgressManager.getInstance().run(object : Task.Backgroundable(project, "Removing Local Whitelist", false) {
+ ProgressManager.getInstance().run(object : Task.Backgroundable(project, "Removing Test Scheme", false) {
override fun run(indicator: ProgressIndicator) {
if (recorderId == null) {
WhitelistTestGroupStorage.cleanupAll()
diff --git a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/ConfigureWhitelistAction.kt b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/ConfigureEventsSchemeFileAction.kt
similarity index 66%
rename from platform/statistics/devkit/src/com/intellij/internal/statistic/actions/ConfigureWhitelistAction.kt
rename to platform/statistics/devkit/src/com/intellij/internal/statistic/actions/ConfigureEventsSchemeFileAction.kt
index e161765893b8..726134999948 100644
--- a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/ConfigureWhitelistAction.kt
+++ b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/ConfigureEventsSchemeFileAction.kt
@@ -16,41 +16,41 @@ import com.intellij.openapi.project.DumbAwareAction
import com.intellij.ui.LayeredIcon
import com.intellij.ui.components.dialog
-class ConfigureWhitelistAction(private var myRecorderId: String = StatisticsDevKitUtil.DEFAULT_RECORDER)
- : DumbAwareAction(ActionsBundle.message("action.ConfigureWhitelistAction.text"),
- ActionsBundle.message("action.ConfigureWhitelistAction.description"),
+class ConfigureEventsSchemeFileAction(private var myRecorderId: String = StatisticsDevKitUtil.DEFAULT_RECORDER)
+ : DumbAwareAction(ActionsBundle.message("action.ConfigureEventsSchemeFileAction.text"),
+ ActionsBundle.message("action.ConfigureEventsSchemeFileAction.description"),
null) {
override fun actionPerformed(e: AnActionEvent) {
val project = e.project ?: return
- val whitelistConfigurationModel = WhitelistConfigurationModel()
+ val configurationModel = EventsSchemeConfigurationModel()
val dialog = dialog(
- title = "Configure Whitelist",
- panel = whitelistConfigurationModel.panel,
+ title = "Configure Custom Events Scheme",
+ panel = configurationModel.panel,
resizable = true,
project = project,
- ok = { listOfNotNull(whitelistConfigurationModel.validate()) }
+ ok = { listOfNotNull(configurationModel.validate()) }
)
if (!dialog.showAndGet()) return
- ProgressManager.getInstance().run(object : Task.Backgroundable(project, "Saving Whitelist Configuration...", false) {
+ ProgressManager.getInstance().run(object : Task.Backgroundable(project, "Saving Events Scheme Configuration...", false) {
override fun run(indicator: ProgressIndicator) {
- updateWhitelistSettings(whitelistConfigurationModel.recorderToSettings)
+ updateSchemeSettings(configurationModel.recorderToSettings)
}
})
}
- private fun updateWhitelistSettings(recorderToSettings: MutableMap) {
- val whitelistSettingsPersistence = EventLogWhitelistSettingsPersistence.getInstance()
+ private fun updateSchemeSettings(recorderToSettings: MutableMap) {
+ val settingsPersistence = EventLogWhitelistSettingsPersistence.getInstance()
for ((recorder, settings) in recorderToSettings) {
val customPath = settings.customPath
if (settings.useCustomPath && customPath != null) {
- whitelistSettingsPersistence.setPathSettings(recorder, WhitelistPathSettings(customPath, true))
+ settingsPersistence.setPathSettings(recorder, WhitelistPathSettings(customPath, true))
}
else {
- val oldSettings = whitelistSettingsPersistence.getPathSettings(recorder)
+ val oldSettings = settingsPersistence.getPathSettings(recorder)
if (oldSettings != null && oldSettings.isUseCustomPath) {
- whitelistSettingsPersistence.setPathSettings(recorder, WhitelistPathSettings(oldSettings.customPath, false))
+ settingsPersistence.setPathSettings(recorder, WhitelistPathSettings(oldSettings.customPath, false))
}
}
val validator = SensitiveDataValidator.getInstance(recorder)
diff --git a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/WhitelistConfigurationModel.kt b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/EventsSchemeConfigurationModel.kt
similarity index 91%
rename from platform/statistics/devkit/src/com/intellij/internal/statistic/actions/WhitelistConfigurationModel.kt
rename to platform/statistics/devkit/src/com/intellij/internal/statistic/actions/EventsSchemeConfigurationModel.kt
index 535f2903772e..ed6782e50d91 100644
--- a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/WhitelistConfigurationModel.kt
+++ b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/EventsSchemeConfigurationModel.kt
@@ -16,7 +16,7 @@ import com.intellij.ui.layout.*
import javax.swing.JCheckBox
import javax.swing.event.DocumentEvent
-class WhitelistConfigurationModel {
+class EventsSchemeConfigurationModel {
val panel: DialogPanel
val recorderToSettings: MutableMap = mutableMapOf()
private val recorderComboBox = ComboBox()
@@ -31,7 +31,7 @@ class WhitelistConfigurationModel {
}
recorderComboBox.addActionListener { updatePanel() }
- pathField.addBrowseFolderListener("Select Whitelist Location ", null, null, FileChooserDescriptorFactory.createSingleFileDescriptor())
+ pathField.addBrowseFolderListener("Select Events Scheme Location ", null, null, FileChooserDescriptorFactory.createSingleFileDescriptor())
pathField.textField.document.addDocumentListener(object : DocumentAdapter() {
override fun textChanged(e: DocumentEvent) {
if (useCustomPathCheckBox.isSelected) {
@@ -103,7 +103,7 @@ class WhitelistConfigurationModel {
val customPath = settings.customPath
if (customPath.isNullOrBlank()) {
- return ValidationInfo("Specify whitelist path.", pathField.textField)
+ return ValidationInfo("Specify events scheme path.", pathField.textField)
}
else if (!FileUtil.exists(customPath)) {
return ValidationInfo("File doesn't exist.", pathField.textField)
@@ -126,9 +126,9 @@ class WhitelistConfigurationModel {
val currentPath: String
get() {
- val customWhitelistPath = customPath
- return if (useCustomPath && customWhitelistPath != null) {
- customWhitelistPath
+ val customEventsSchemePath = customPath
+ return if (useCustomPath && customEventsSchemePath != null) {
+ customEventsSchemePath
}
else {
defaultPath
diff --git a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenWhitelistFileAction.kt b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenEventsSchemeFileAction.kt
similarity index 84%
rename from platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenWhitelistFileAction.kt
rename to platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenEventsSchemeFileAction.kt
index 9105b5e99bf5..bc21587c61b7 100644
--- a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenWhitelistFileAction.kt
+++ b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenEventsSchemeFileAction.kt
@@ -7,7 +7,6 @@ import com.intellij.internal.statistic.StatisticsBundle
import com.intellij.internal.statistic.StatisticsDevKitUtil
import com.intellij.internal.statistic.StatisticsDevKitUtil.showNotification
import com.intellij.internal.statistic.eventLog.validator.persistence.BaseEventLogWhitelistPersistence
-import com.intellij.internal.statistic.eventLog.validator.persistence.EventLogWhitelistPersistence
import com.intellij.internal.statistic.eventLog.validator.persistence.EventLogWhitelistPersistence.EVENTS_SCHEME_FILE
import com.intellij.internal.statistic.eventLog.validator.persistence.EventLogWhitelistSettingsPersistence
import com.intellij.notification.NotificationType
@@ -18,9 +17,9 @@ import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VfsUtil
import java.io.File
-class OpenWhitelistFileAction(private val myRecorderId: String = StatisticsDevKitUtil.DEFAULT_RECORDER)
- : DumbAwareAction(StatisticsBundle.message("stats.open.0.whitelist.file", myRecorderId),
- ActionsBundle.message("group.OpenWhitelistFileAction.description"),
+class OpenEventsSchemeFileAction(private val myRecorderId: String = StatisticsDevKitUtil.DEFAULT_RECORDER)
+ : DumbAwareAction(StatisticsBundle.message("stats.open.0.scheme.file", myRecorderId),
+ ActionsBundle.message("group.OpenEventsSchemeFileAction.description"),
AllIcons.FileTypes.Config) {
override fun actionPerformed(e: AnActionEvent) {
val project = e.project ?: return
diff --git a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenLocalWhitelistFileAction.kt b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenEventsTestSchemeFileAction.kt
similarity index 67%
rename from platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenLocalWhitelistFileAction.kt
rename to platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenEventsTestSchemeFileAction.kt
index 993ca5e6504f..f44a923b0f1f 100644
--- a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenLocalWhitelistFileAction.kt
+++ b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/OpenEventsTestSchemeFileAction.kt
@@ -5,14 +5,14 @@ import com.intellij.icons.AllIcons
import com.intellij.idea.ActionsBundle
import com.intellij.internal.statistic.StatisticsBundle
import com.intellij.internal.statistic.StatisticsDevKitUtil
-import com.intellij.internal.statistic.actions.OpenWhitelistFileAction.Companion.openFileInEditor
+import com.intellij.internal.statistic.actions.OpenEventsSchemeFileAction.Companion.openFileInEditor
import com.intellij.internal.statistic.eventLog.validator.persistence.EventLogTestWhitelistPersistence
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.DumbAwareAction
-class OpenLocalWhitelistFileAction(private val myRecorderId: String = StatisticsDevKitUtil.DEFAULT_RECORDER)
- : DumbAwareAction(StatisticsBundle.message("stats.open.0.local.whitelist.file", myRecorderId),
- ActionsBundle.message("group.OpenLocalWhitelistFileAction.description"),
+class OpenEventsTestSchemeFileAction(private val myRecorderId: String = StatisticsDevKitUtil.DEFAULT_RECORDER)
+ : DumbAwareAction(StatisticsBundle.message("stats.open.0.test.scheme.file", myRecorderId),
+ ActionsBundle.message("group.OpenEventsTestSchemeFileAction.description"),
AllIcons.FileTypes.Any_type) {
override fun actionPerformed(e: AnActionEvent) {
val project = e.project ?: return
diff --git a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventLogWhitelistAction.java b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventsSchemeAction.java
similarity index 90%
rename from platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventLogWhitelistAction.java
rename to platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventsSchemeAction.java
index 87e15d0586a7..7643a6e9858a 100644
--- a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventLogWhitelistAction.java
+++ b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventsSchemeAction.java
@@ -12,7 +12,7 @@ import com.intellij.psi.PsiFile;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
-public class TestParseEventLogWhitelistAction extends DumbAwareAction {
+public class TestParseEventsSchemeAction extends DumbAwareAction {
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
@@ -22,7 +22,7 @@ public class TestParseEventLogWhitelistAction extends DumbAwareAction {
final Editor editor =
fileType != null && StringUtil.equalsIgnoreCase(fileType.getFileType().getName(), "json") ?
e.getData(CommonDataKeys.EDITOR) : null;
- new TestParseEventLogWhitelistDialog(project, editor).show();
+ new TestParseEventsSchemeDialog(project, editor).show();
}
}
diff --git a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventLogWhitelistDialog.form b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventsSchemeDialog.form
similarity index 93%
rename from platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventLogWhitelistDialog.form
rename to platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventsSchemeDialog.form
index 20b000bd0e4b..5107bf3b3c96 100644
--- a/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventLogWhitelistDialog.form
+++ b/platform/statistics/devkit/src/com/intellij/internal/statistic/actions/TestParseEventsSchemeDialog.form
@@ -1,5 +1,5 @@
-