public class ProjectJdkImpl extends UserDataHolderBase implements Sdk, SdkModificator, Disposable
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_VALUE |
static java.lang.String |
ELEMENT_ADDITIONAL |
static java.lang.String |
ELEMENT_NAME |
static java.lang.String |
ELEMENT_TYPE |
Constructor and Description |
---|
ProjectJdkImpl(java.lang.String name,
SdkTypeId sdkType) |
ProjectJdkImpl(java.lang.String name,
SdkTypeId sdkType,
java.lang.String homePath,
java.lang.String version) |
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getUserData, putUserData
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String ATTRIBUTE_VALUE
public static final java.lang.String ELEMENT_TYPE
public static final java.lang.String ELEMENT_ADDITIONAL
public ProjectJdkImpl(java.lang.String name, SdkTypeId sdkType)
public ProjectJdkImpl(java.lang.String name, SdkTypeId sdkType, java.lang.String homePath, java.lang.String version)
public static VirtualFilePointerListener getGlobalVirtualFilePointerListener()
public void dispose()
Disposable
dispose
in interface Disposable
public SdkTypeId getSdkType()
getSdkType
in interface Sdk
public java.lang.String getName()
getName
in interface Sdk
getName
in interface SdkModificator
public void setName(java.lang.String name)
setName
in interface SdkModificator
public final void setVersionString(java.lang.String versionString)
setVersionString
in interface SdkModificator
public java.lang.String getVersionString()
getVersionString
in interface Sdk
getVersionString
in interface SdkModificator
public final void resetVersionString()
public java.lang.String getHomePath()
getHomePath
in interface Sdk
getHomePath
in interface SdkModificator
public VirtualFile getHomeDirectory()
getHomeDirectory
in interface Sdk
public void readExternal(Element element)
public void readExternal(Element element, ProjectJdkTable projectJdkTable) throws InvalidDataException
InvalidDataException
public void writeExternal(Element element)
public void setHomePath(java.lang.String path)
setHomePath
in interface SdkModificator
public ProjectJdkImpl clone()
clone
in interface Sdk
clone
in class UserDataHolderBase
public RootProvider getRootProvider()
getRootProvider
in interface Sdk
public void changeType(SdkTypeId newType, Element additionalDataElement)
public SdkModificator getSdkModificator()
getSdkModificator
in interface Sdk
public void commitChanges()
commitChanges
in interface SdkModificator
public SdkAdditionalData getSdkAdditionalData()
getSdkAdditionalData
in interface Sdk
getSdkAdditionalData
in interface SdkModificator
public void setSdkAdditionalData(SdkAdditionalData data)
setSdkAdditionalData
in interface SdkModificator
public VirtualFile [] getRoots(OrderRootType rootType)
getRoots
in interface SdkModificator
public java.lang.String [] getUrls(OrderRootType rootType)
getUrls
in interface SdkModificator
public void addRoot(VirtualFile root, OrderRootType rootType)
addRoot
in interface SdkModificator
public void addRoot(java.lang.String url, OrderRootType rootType)
addRoot
in interface SdkModificator
public void removeRoot(VirtualFile root, OrderRootType rootType)
removeRoot
in interface SdkModificator
public void removeRoot(java.lang.String url, OrderRootType rootType)
removeRoot
in interface SdkModificator
public void removeRoots(OrderRootType rootType)
removeRoots
in interface SdkModificator
public void removeAllRoots()
removeAllRoots
in interface SdkModificator
public boolean isWritable()
isWritable
in interface SdkModificator
public java.lang.String toString()
toString
in class java.lang.Object