public class ProjectJdkTableImpl extends ProjectJdkTable implements ExportableComponent, PersistentStateComponent<Element>
ProjectJdkTable.Adapter, ProjectJdkTable.Listener
JDK_TABLE_TOPIC
EXTENSION_POINT
Constructor and Description |
---|
ProjectJdkTableImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addJdk(Sdk jdk) |
void |
addTestJdk(Sdk jdk,
Disposable parentDisposable) |
Sdk |
createSdk(java.lang.String name,
SdkTypeId sdkType) |
Sdk |
findJdk(java.lang.String name) |
Sdk |
findJdk(java.lang.String name,
java.lang.String type) |
Sdk [] |
getAllJdks() |
SdkTypeId |
getDefaultSdkType() |
java.io.File [] |
getExportFiles() |
java.lang.String |
getPresentableName() |
java.util.List<Sdk> |
getSdksOfType(SdkTypeId type) |
SdkTypeId |
getSdkTypeByName(java.lang.String sdkTypeName) |
Element |
getState() |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
removeJdk(Sdk jdk) |
void |
removeTestJdk(Sdk jdk) |
void |
updateJdk(Sdk originalJdk,
Sdk modifiedJdk) |
addJdk, findMostRecentSdk, findMostRecentSdkOfType, getInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public java.io.File [] getExportFiles()
getExportFiles
in interface ExportableComponent
public java.lang.String getPresentableName()
getPresentableName
in interface ExportableComponent
public Sdk findJdk(java.lang.String name)
findJdk
in class ProjectJdkTable
public Sdk findJdk(java.lang.String name, java.lang.String type)
findJdk
in class ProjectJdkTable
public Sdk [] getAllJdks()
getAllJdks
in class ProjectJdkTable
public java.util.List<Sdk> getSdksOfType(SdkTypeId type)
getSdksOfType
in class ProjectJdkTable
public void addTestJdk(Sdk jdk, Disposable parentDisposable)
public void removeTestJdk(Sdk jdk)
public void addJdk(Sdk jdk)
addJdk
in class ProjectJdkTable
public void removeJdk(Sdk jdk)
removeJdk
in class ProjectJdkTable
public void updateJdk(Sdk originalJdk, Sdk modifiedJdk)
updateJdk
in class ProjectJdkTable
public SdkTypeId getDefaultSdkType()
getDefaultSdkType
in class ProjectJdkTable
public SdkTypeId getSdkTypeByName(java.lang.String sdkTypeName)
getSdkTypeByName
in class ProjectJdkTable
public Sdk createSdk(java.lang.String name, SdkTypeId sdkType)
createSdk
in class ProjectJdkTable
public void loadState(Element element)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
element
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
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