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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisDependentisLocalSdk, versionComparatorpublic static SimpleJavaSdkType getInstance()
public Sdk createJdk(java.lang.String jdkName, java.lang.String home)
public java.lang.String getPresentableName()
getPresentableName in class SdkTypepublic AdditionalDataConfigurable createAdditionalDataConfigurable(SdkModel sdkModel, SdkModificator sdkModificator)
createAdditionalDataConfigurable in class SdkTypepublic void saveAdditionalData(SdkAdditionalData additionalData, Element additional)
saveAdditionalData in interface SdkTypeIdpublic java.lang.String getBinPath(Sdk sdk)
getBinPath in interface JavaSdkTypepublic java.lang.String getToolsPath(Sdk sdk)
getToolsPath in interface JavaSdkTypepublic java.lang.String getVMExecutablePath(Sdk sdk)
getVMExecutablePath in interface JavaSdkTypepublic java.lang.String suggestHomePath()
SdkTypenull 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 SdkTypepublic java.util.Collection<java.lang.String> suggestHomePaths()
SdkType["/usr/bin/python2", "/usr/bin/python3"].suggestHomePaths in class SdkTypepublic boolean isValidSdkHome(java.lang.String path)
isValidSdkHome in class SdkTypepublic java.lang.String suggestSdkName(java.lang.String currentSdkName,
java.lang.String sdkHome)
suggestSdkName in class SdkTypepublic final java.lang.String getVersionString(java.lang.String sdkHome)
getVersionString in class SdkTypepublic java.util.Comparator<java.lang.String> versionStringComparator()
SdkTypeIdSdk.getVersionString() or SdkType.getVersionString(com.intellij.openapi.projectRoots.Sdk)
SdkTypeId.versionComparator()versionStringComparator in interface SdkTypeIdpublic static Condition<SdkTypeId> notSimpleJavaSdkType(Condition<? super SdkTypeId> condition)
public static Condition<SdkTypeId> notSimpleJavaSdkTypeIfAlternativeExists()
public static Condition<SdkTypeId> notSimpleJavaSdkTypeIfAlternativeExistsAndNotDependentSdkType()