mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add statistics for IDE help
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,6 +21,7 @@ import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.ide.plugins.HelpSetPath;
|
||||
import com.intellij.ide.plugins.IdeaPluginDescriptor;
|
||||
import com.intellij.ide.plugins.PluginManager;
|
||||
import com.intellij.internal.statistic.UsageTrigger;
|
||||
import com.intellij.openapi.application.ApplicationInfo;
|
||||
import com.intellij.openapi.application.ex.ApplicationInfoEx;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
@@ -49,6 +50,8 @@ public class HelpManagerImpl extends HelpManager {
|
||||
private Object myFXHelpBrowser = null;
|
||||
|
||||
public void invokeHelp(@Nullable String id) {
|
||||
UsageTrigger.trigger("ide.help." + id);
|
||||
|
||||
if (myHelpSet == null) {
|
||||
myHelpSet = createHelpSet();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user