File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 99import com .intellij .openapi .actionSystem .AnActionEvent ;
1010import com .intellij .openapi .project .DumbAwareAction ;
1111import io .flutter .FlutterConstants ;
12+ import io .flutter .analytics .Analytics ;
13+ import io .flutter .analytics .AnalyticsData ;
1214import org .jetbrains .annotations .NotNull ;
1315
1416public class FlutterGettingStartedAction extends DumbAwareAction {
1517 @ Override
1618 public void actionPerformed (@ NotNull final AnActionEvent e ) {
19+ Analytics .report (AnalyticsData .forAction (this , e ));
20+
1721 BrowserLauncher .getInstance ().browse (FlutterConstants .URL_GETTING_STARTED_IDE , null );
1822 }
1923}
Original file line number Diff line number Diff line change 88import com .intellij .ide .browsers .BrowserLauncher ;
99import com .intellij .openapi .actionSystem .AnActionEvent ;
1010import com .intellij .openapi .project .DumbAwareAction ;
11+ import io .flutter .analytics .Analytics ;
12+ import io .flutter .analytics .AnalyticsData ;
1113import org .jetbrains .annotations .NotNull ;
1214
1315public class FlutterSubmitFeedback extends DumbAwareAction {
1416 @ Override
1517 public void actionPerformed (@ NotNull final AnActionEvent e ) {
18+ Analytics .report (AnalyticsData .forAction (this , e ));
19+
1620 final String url = "https://github.com/flutter/flutter-intellij/issues/new" ;
1721 BrowserLauncher .getInstance ().browse (url , null );
1822 }
Original file line number Diff line number Diff line change 1111import com .intellij .openapi .project .Project ;
1212import io .flutter .FlutterBundle ;
1313import io .flutter .FlutterUtils ;
14+ import io .flutter .analytics .Analytics ;
15+ import io .flutter .analytics .AnalyticsData ;
1416import org .jetbrains .annotations .NotNull ;
1517
1618import java .util .Optional ;
@@ -34,6 +36,8 @@ public void actionPerformed(@NotNull AnActionEvent event) {
3436 return ;
3537 }
3638
39+ Analytics .report (AnalyticsData .forAction (this , event ));
40+
3741 Optional .ofNullable (
3842 FlutterUtils .embeddedBrowser (project ))
3943 .ifPresent (embeddedBrowser -> embeddedBrowser .refresh (toolWindowId ));
You can’t perform that action at this time.
0 commit comments