public class ScratchFileServiceImpl extends ScratchFileService implements PersistentStateComponent<Element>, Disposable
| Modifier and Type | Class and Description |
|---|---|
static class |
ScratchFileServiceImpl.AccessExtension |
static class |
ScratchFileServiceImpl.FilePresentation |
static class |
ScratchFileServiceImpl.Highlighter |
static class |
ScratchFileServiceImpl.IndexSetContributor |
static class |
ScratchFileServiceImpl.NavBarExtension |
static class |
ScratchFileServiceImpl.Substitutor |
static class |
ScratchFileServiceImpl.UsageTypeExtension |
static class |
ScratchFileServiceImpl.UseScopeExtension |
ScratchFileService.OptionDisposable.Parent| Modifier | Constructor and Description |
|---|---|
protected |
ScratchFileServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
VirtualFile |
findFile(RootType rootType,
java.lang.String pathName,
ScratchFileService.Option option) |
java.lang.String |
getRootPath(RootType rootType) |
RootType |
getRootType(VirtualFile file) |
PerFileMappings<Language> |
getScratchesMapping() |
Element |
getState() |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
findRootType, getInstance, isInScratchRootclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic java.lang.String getRootPath(RootType rootType)
getRootPath in class ScratchFileServicepublic RootType getRootType(VirtualFile file)
getRootType in class ScratchFileServicepublic PerFileMappings<Language> getScratchesMapping()
getScratchesMapping in class ScratchFileServicepublic 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.XmlSerializerpublic void loadState(Element state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<Element>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public void dispose()
Disposabledispose in interface Disposablepublic VirtualFile findFile(RootType rootType, java.lang.String pathName, ScratchFileService.Option option) throws java.io.IOException
findFile in class ScratchFileServicejava.io.IOException