use of com.intellij.featureStatistics.FeatureDescriptor in project intellij-community by JetBrains.
the class IdeResourcesTestCase method testFeatureTipsRegistered.
public void testFeatureTipsRegistered() {
ProductivityFeaturesRegistry registry = ProductivityFeaturesRegistry.getInstance();
Set<String> ids = registry.getFeatureIds();
assertNotEmpty(ids);
Collection<String> errors = ContainerUtil.newTreeSet();
for (String id : ids) {
FeatureDescriptor descriptor = registry.getFeatureDescriptor(id);
TipAndTrickBean tip = TipAndTrickBean.findByFileName(descriptor.getTipFileName());
if (tip == null) {
errors.add("<tipAndTrick file=\"" + descriptor.getTipFileName() + "\" feature-id=\"" + id + "\"/>");
}
}
assertEquals("Register the following extensions:\n" + StringUtil.join(errors, "\n"), 0, errors.size());
}
use of com.intellij.featureStatistics.FeatureDescriptor in project intellij-community by JetBrains.
the class AdaptiveTipDialog method selectCurrentFeature.
private void selectCurrentFeature() {
String id = myFeatures[myCurrentFeature];
FeatureUsageTracker.getInstance().triggerFeatureShown(id);
FeatureDescriptor feature = ProductivityFeaturesRegistry.getInstance().getFeatureDescriptor(id);
TipUIUtil.openTipInBrowser(feature.getTipFileName(), myBrowser, feature.getProvider());
}
Aggregations