public class SimpleJavaSdkType extends SdkType implements JavaSdkType
Constructor and Description |
---|
SimpleJavaSdkType() |
Modifier and Type | Method and Description |
---|---|
AdditionalDataConfigurable |
createAdditionalDataConfigurable(SdkModel sdkModel,
SdkModificator sdkModificator) |
Sdk |
createJdk(java.lang.String jdkName,
java.lang.String home) |
java.lang.String |
getBinPath(Sdk sdk) |
static SimpleJavaSdkType |
getInstance() |
java.lang.String |
getPresentableName() |
java.lang.String |
getToolsPath(Sdk sdk) |
java.lang.String |
getVersionString(java.lang.String sdkHome) |
java.lang.String |
getVMExecutablePath(Sdk sdk) |
boolean |
isValidSdkHome(java.lang.String path) |
static Condition<SdkTypeId> |
notSimpleJavaSdkType() |
static Condition<SdkTypeId> |
notSimpleJavaSdkType(Condition<? super SdkTypeId> condition) |
static Condition<SdkTypeId> |
notSimpleJavaSdkTypeIfAlternativeExists() |
static Condition<SdkTypeId> |
notSimpleJavaSdkTypeIfAlternativeExistsAndNotDependentSdkType() |
void |
saveAdditionalData(SdkAdditionalData additionalData,
Element additional) |
java.lang.String |
suggestHomePath()
Returns a recommended starting path for a file chooser (where SDKs of this type are usually may be found),
or
null if not applicable/no SDKs found. |
java.util.Collection<java.lang.String> |
suggestHomePaths()
Returns a list of all valid SDKs found on this host.
|
java.lang.String |
suggestSdkName(java.lang.String currentSdkName,
java.lang.String sdkHome) |
java.util.Comparator<java.lang.String> |
versionStringComparator()
A comparator to compare versions of SDKs of that SdkType, e.g.
|
adjustSelectedSdkHome, allowCreationByUser, equals, findByName, findInstance, getAllTypes, getComparator, getDefaultDocumentationUrl, getDependencyType, getDownloadSdkUrl, getHelpTopic, getHomeChooserDescriptor, getHomeFieldLabel, getIcon, getIconForAddAction, getInvalidHomeMessage, getName, getVersionString, hashCode, isRelevantForFile, isRootTypeApplicable, loadAdditionalData, loadAdditionalData, sdkHasValidPath, sdkPath, setupSdkPaths, setupSdkPaths, showCustomCreateUI, showCustomCreateUI, supportsCustomCreateUI, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isDependent
isLocalSdk, versionComparator
public static SimpleJavaSdkType getInstance()
public Sdk createJdk(java.lang.String jdkName, java.lang.String home)
public java.lang.String getPresentableName()
getPresentableName
in class SdkType
public AdditionalDataConfigurable createAdditionalDataConfigurable(SdkModel sdkModel, SdkModificator sdkModificator)
createAdditionalDataConfigurable
in class SdkType
public void saveAdditionalData(SdkAdditionalData additionalData, Element additional)
saveAdditionalData
in interface SdkTypeId
public java.lang.String getBinPath(Sdk sdk)
getBinPath
in interface JavaSdkType
public java.lang.String getToolsPath(Sdk sdk)
getToolsPath
in interface JavaSdkType
public java.lang.String getVMExecutablePath(Sdk sdk)
getVMExecutablePath
in interface JavaSdkType
public java.lang.String suggestHomePath()
SdkType
null
if not applicable/no SDKs found.
E.g. for Python SDK on Unix the method may return either "/usr/bin"
or "/usr/bin/python"
(if there is only one Python interpreter installed on a host).suggestHomePath
in class SdkType
public java.util.Collection<java.lang.String> suggestHomePaths()
SdkType
["/usr/bin/python2", "/usr/bin/python3"]
.suggestHomePaths
in class SdkType
public boolean isValidSdkHome(java.lang.String path)
isValidSdkHome
in class SdkType
public java.lang.String suggestSdkName(java.lang.String currentSdkName, java.lang.String sdkHome)
suggestSdkName
in class SdkType
public final java.lang.String getVersionString(java.lang.String sdkHome)
getVersionString
in class SdkType
public java.util.Comparator<java.lang.String> versionStringComparator()
SdkTypeId
Sdk.getVersionString()
or SdkType.getVersionString(com.intellij.openapi.projectRoots.Sdk)
SdkTypeId.versionComparator()
versionStringComparator
in interface SdkTypeId
public static Condition<SdkTypeId> notSimpleJavaSdkType(Condition<? super SdkTypeId> condition)
public static Condition<SdkTypeId> notSimpleJavaSdkTypeIfAlternativeExists()
public static Condition<SdkTypeId> notSimpleJavaSdkTypeIfAlternativeExistsAndNotDependentSdkType()