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.Option
Disposable.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, isInScratchRoot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public java.lang.String getRootPath(RootType rootType)
getRootPath
in class ScratchFileService
public RootType getRootType(VirtualFile file)
getRootType
in class ScratchFileService
public PerFileMappings<Language> getScratchesMapping()
getScratchesMapping
in class ScratchFileService
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 loadState(Element state)
PersistentStateComponent
State 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()
Disposable
dispose
in interface Disposable
public VirtualFile findFile(RootType rootType, java.lang.String pathName, ScratchFileService.Option option) throws java.io.IOException
findFile
in class ScratchFileService
java.io.IOException