public final class FeatureUsageTrackerImpl extends FeatureUsageTracker implements PersistentStateComponent<Element>
Modifier and Type | Class and Description |
---|---|
static class |
FeatureUsageTrackerImpl.ProductivityUtilValidator |
SHOW_IN_COMPILATION_PROGRESS, SHOW_IN_OTHER_PROGRESS
Constructor and Description |
---|
FeatureUsageTrackerImpl() |
Modifier and Type | Method and Description |
---|---|
CompletionStatistics |
getCompletionStatistics() |
long |
getFirstRunTime() |
CumulativeStatistics |
getFixesStats() |
Element |
getState() |
boolean |
isToBeAdvertisedInLookup(java.lang.String featureId,
Project project) |
boolean |
isToBeShown(java.lang.String featureId,
Project project) |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
triggerFeatureShown(java.lang.String featureId) |
void |
triggerFeatureUsed(java.lang.String featureId) |
getInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public boolean isToBeShown(java.lang.String featureId, Project project)
isToBeShown
in class FeatureUsageTracker
public boolean isToBeAdvertisedInLookup(java.lang.String featureId, Project project)
isToBeAdvertisedInLookup
in class FeatureUsageTracker
public CompletionStatistics getCompletionStatistics()
public CumulativeStatistics getFixesStats()
public long getFirstRunTime()
public void loadState(Element element)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
element
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void triggerFeatureUsed(java.lang.String featureId)
triggerFeatureUsed
in class FeatureUsageTracker
public void triggerFeatureShown(java.lang.String featureId)
triggerFeatureShown
in class FeatureUsageTracker