protected String getIdeVersion() { return ApplicationInfo.getInstance().getFullVersion(); }
@NotNull @Override public Response handle(@NotNull RequestMatcher requestMatcher) { InfoDic info = new InfoDic(); info.fullVersion = ApplicationInfo.getInstance().getFullVersion(); info.apiVersion = ApplicationInfo.getInstance().getApiVersion(); info.versionName = ApplicationInfo.getInstance().getVersionName(); info.projects = ProjectIndexHttpAction.getProjects(); info.routes = ContainerUtil.map(RemoteUtil.getRoutes(), route -> new HashMap<String, String>() {{ put("path", route.getPath()); put("method", route.getMethod()); }}); for (IdeaPluginDescriptor descriptor : PluginManager.getPlugins()) { Map<String, String> map = new TreeMap<>(); map.put("name", descriptor.getName()); map.put("version", descriptor.getVersion()); map.put("pluginId", descriptor.getPluginId().getIdString()); info.plugins.add(map); } return new JsonResponse(info); } }
private void enrich(GoogleAnalyticsRequest request) { request.clientId(SettingsComponent.getInstance().getUserId()); request.dataSource("plugin"); request.customDimension(1, applicationInfo.getBuild().getProductCode()); // jetbrainsProductCode request.customDimension(2, applicationInfo.getBuild().asStringWithoutProductCode()); // jetbrainsBuildNumber request.customDimension(3, applicationInfo.getFullVersion()); // jetbrainsProductVersion request.customDimension(4, String.valueOf(PluginUtil.isEnabled())); // pluginEnabled request.customDimension(5, PluginUtil.getVersion()); // pluginVersion request.customDimension(6, String.valueOf(GraphConstants.IS_DEVELOPMENT)); // pluginDevelopmentMode }
error.getMessage() == null ? "" : error.getMessage(), error.getDescription() == null ? "" : error.getDescription(), ApplicationInfo.getInstance().getFullVersion(), successCallback, errorCallback);