public class RemoteRepositoriesConfiguration extends java.lang.Object implements PersistentStateComponent<com.intellij.jarRepository.RemoteRepositoriesConfiguration.State>
Constructor and Description |
---|
RemoteRepositoriesConfiguration() |
RemoteRepositoriesConfiguration(java.util.Collection<? extends RemoteRepositoryDescription> repos) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static RemoteRepositoriesConfiguration |
getInstance(Project project) |
java.util.List<RemoteRepositoryDescription> |
getRepositories() |
com.intellij.jarRepository.RemoteRepositoriesConfiguration.State |
getState() |
int |
hashCode() |
void |
loadState(com.intellij.jarRepository.RemoteRepositoriesConfiguration.State state)
This method is called when new component state is loaded.
|
void |
resetToDefault() |
void |
setRepositories(java.util.List<? extends RemoteRepositoryDescription> repos) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public RemoteRepositoriesConfiguration()
public RemoteRepositoriesConfiguration(java.util.Collection<? extends RemoteRepositoryDescription> repos)
public static RemoteRepositoriesConfiguration getInstance(Project project)
public java.util.List<RemoteRepositoryDescription> getRepositories()
public void resetToDefault()
public void setRepositories(java.util.List<? extends RemoteRepositoryDescription> repos)
public com.intellij.jarRepository.RemoteRepositoriesConfiguration.State getState()
getState
in interface PersistentStateComponent<com.intellij.jarRepository.RemoteRepositoriesConfiguration.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(com.intellij.jarRepository.RemoteRepositoriesConfiguration.State state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<com.intellij.jarRepository.RemoteRepositoriesConfiguration.State>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object