public final class FileEditorProviderManagerImpl extends FileEditorProviderManager implements PersistentStateComponent<FileEditorProviderManagerImpl>
Constructor and Description |
---|
FileEditorProviderManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clearSelectedProviders() |
FileEditorProvider |
getProvider(java.lang.String editorTypeId) |
FileEditorProvider [] |
getProviders(Project project,
VirtualFile file) |
java.util.Map<java.lang.String,java.lang.String> |
getSelectedProviders() |
FileEditorProviderManagerImpl |
getState() |
void |
loadState(FileEditorProviderManagerImpl state)
This method is called when new component state is loaded.
|
void |
setSelectedProviders(java.util.Map<java.lang.String,java.lang.String> selectedProviders) |
getInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public FileEditorProvider [] getProviders(Project project, VirtualFile file)
getProviders
in class FileEditorProviderManager
file
or empty array if there are none.
Please note that returned array is constructed with respect to editor policies.public FileEditorProvider getProvider(java.lang.String editorTypeId)
getProvider
in class FileEditorProviderManager
null
if no provider with specified editorTypeId
exists.public FileEditorProviderManagerImpl getState()
getState
in interface PersistentStateComponent<FileEditorProviderManagerImpl>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(FileEditorProviderManagerImpl state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<FileEditorProviderManagerImpl>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public java.util.Map<java.lang.String,java.lang.String> getSelectedProviders()
public void setSelectedProviders(java.util.Map<java.lang.String,java.lang.String> selectedProviders)
public void clearSelectedProviders()