public class VcsContentAnnotationSettings extends java.lang.Object implements PersistentStateComponent<com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings.State>
| Modifier and Type | Field and Description |
|---|---|
static int |
ourMaxDays |
| Constructor and Description |
|---|
VcsContentAnnotationSettings() |
| Modifier and Type | Method and Description |
|---|---|
static VcsContentAnnotationSettings |
getInstance(Project project) |
long |
getLimit() |
int |
getLimitDays() |
com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings.State |
getState() |
boolean |
isShow() |
void |
loadState(com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings.State state)
This method is called when new component state is loaded.
|
void |
setLimit(int days) |
void |
setShow(boolean value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic static final int ourMaxDays
public static VcsContentAnnotationSettings getInstance(Project project)
public com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings.State getState()
getState in interface PersistentStateComponent<com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings.State>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void loadState(com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings.State state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationSettings.State>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public long getLimit()
public int getLimitDays()
public void setLimit(int days)
public boolean isShow()
public void setShow(boolean value)