use of com.intellij.internal.statistic.connect.StatisticsResult in project intellij-community by JetBrains.
the class SendStatisticsAction method actionPerformed.
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
final Project project = e.getProject();
if (project == null) {
return;
}
ProgressManager.getInstance().run(new Task.Backgroundable(project, "Sending Statistics", false) {
@Override
public void run(@NotNull ProgressIndicator indicator) {
StatisticsService service = StatisticsUploadAssistant.getStatisticsService();
final StatisticsResult result = service.send();
ApplicationManager.getApplication().invokeLater(() -> Messages.showMultilineInputDialog(project, "Result: " + result.getCode(), "Statistics Result", StringUtil.replace(result.getDescription(), ";", "\n"), null, null), ModalityState.NON_MODAL, project.getDisposed());
}
});
}
Aggregations