public class RemoteMappingsManager extends java.lang.Object implements PersistentStateComponent<RemoteMappingsManager.State>
Modifier and Type | Class and Description |
---|---|
static class |
RemoteMappingsManager.Mappings |
static class |
RemoteMappingsManager.State |
Constructor and Description |
---|
RemoteMappingsManager() |
Modifier and Type | Method and Description |
---|---|
RemoteMappingsManager.Mappings |
create(java.lang.String prefix,
java.lang.String serverId,
java.util.List<PathMappingSettings.PathMapping> settings) |
RemoteMappingsManager.Mappings |
getForServer(java.lang.String prefix,
java.lang.String serverId) |
static RemoteMappingsManager |
getInstance(Project project) |
RemoteMappingsManager.State |
getState() |
void |
loadState(RemoteMappingsManager.State state)
This method is called when new component state is loaded.
|
void |
setForServer(RemoteMappingsManager.Mappings mappings) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static RemoteMappingsManager getInstance(Project project)
public RemoteMappingsManager.State getState()
getState
in interface PersistentStateComponent<RemoteMappingsManager.State>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(RemoteMappingsManager.State state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<RemoteMappingsManager.State>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public void setForServer(RemoteMappingsManager.Mappings mappings)
public RemoteMappingsManager.Mappings getForServer(java.lang.String prefix, java.lang.String serverId)
public RemoteMappingsManager.Mappings create(java.lang.String prefix, java.lang.String serverId, java.util.List<PathMappingSettings.PathMapping> settings)