public class ProjectViewFileNestingService extends java.lang.Object implements PersistentStateComponent<ProjectViewFileNestingService.MyState>, ModificationTracker
NestingTreeStructureProvider and FileNestingInProjectViewDialog.| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectViewFileNestingService.MyState |
static class |
ProjectViewFileNestingService.NestingRule |
EVER_CHANGED, NEVER_CHANGED| Constructor and Description |
|---|
ProjectViewFileNestingService() |
| Modifier and Type | Method and Description |
|---|---|
static ProjectViewFileNestingService |
getInstance() |
long |
getModificationCount() |
java.util.List<ProjectViewFileNestingService.NestingRule> |
getRules()
This list of rules is used for serialization and for UI.
|
ProjectViewFileNestingService.MyState |
getState() |
void |
loadState(ProjectViewFileNestingService.MyState state)
This method is called when new component state is loaded.
|
void |
setRules(java.util.List<? extends ProjectViewFileNestingService.NestingRule> rules) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic static ProjectViewFileNestingService getInstance()
public ProjectViewFileNestingService.MyState getState()
getState in interface PersistentStateComponent<ProjectViewFileNestingService.MyState>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void loadState(ProjectViewFileNestingService.MyState state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<ProjectViewFileNestingService.MyState>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public java.util.List<ProjectViewFileNestingService.NestingRule> getRules()
NestingTreeStructureProvider, it adjusts this list of rules to match its needspublic void setRules(java.util.List<? extends ProjectViewFileNestingService.NestingRule> rules)
public long getModificationCount()
getModificationCount in interface ModificationTracker