public abstract class JavaSdk extends SdkType implements JavaSdkType
Constructor and Description |
---|
JavaSdk(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkForJdk(java.io.File file)
Deprecated.
|
static boolean |
checkForJre(java.lang.String file)
Deprecated.
|
Sdk |
createJdk(java.lang.String jdkName,
java.lang.String jreHome) |
abstract Sdk |
createJdk(java.lang.String jdkName,
java.lang.String home,
boolean isJre) |
static JavaSdk |
getInstance() |
abstract JavaSdkVersion |
getVersion(Sdk sdk) |
abstract JavaSdkVersion |
getVersion(java.lang.String versionString)
Deprecated.
|
abstract boolean |
isOfVersionOrHigher(Sdk sdk,
JavaSdkVersion version) |
boolean |
isRelevantForFile(Project project,
VirtualFile file)
This method is used to decide if a given
VirtualFile has something in common
with this SdkType . |
adjustSelectedSdkHome, allowCreationByUser, createAdditionalDataConfigurable, equals, findByName, findInstance, getAllTypes, getComparator, getDefaultDocumentationUrl, getDependencyType, getDownloadSdkUrl, getHelpTopic, getHomeChooserDescriptor, getHomeFieldLabel, getIcon, getIconForAddAction, getInvalidHomeMessage, getName, getPresentableName, getVersionString, getVersionString, hashCode, isRootTypeApplicable, isValidSdkHome, loadAdditionalData, loadAdditionalData, sdkHasValidPath, sdkPath, setupSdkPaths, setupSdkPaths, showCustomCreateUI, showCustomCreateUI, suggestHomePath, suggestHomePaths, suggestSdkName, supportsCustomCreateUI, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBinPath, getToolsPath, getVMExecutablePath, isDependent
isLocalSdk, saveAdditionalData, versionComparator, versionStringComparator
public static JavaSdk getInstance()
public boolean isRelevantForFile(Project project, VirtualFile file)
SdkType
VirtualFile
has something in common
with this SdkType
.
For example, it can be used by the IDE to decide showing SDK related editor notifications or quick fixesisRelevantForFile
in class SdkType
public final Sdk createJdk(java.lang.String jdkName, java.lang.String jreHome)
public abstract Sdk createJdk(java.lang.String jdkName, java.lang.String home, boolean isJre)
public abstract JavaSdkVersion getVersion(Sdk sdk)
public abstract boolean isOfVersionOrHigher(Sdk sdk, JavaSdkVersion version)
@Deprecated public static boolean checkForJdk(java.io.File file)
JdkUtil.checkForJdk(java.lang.String)
@Deprecated public static boolean checkForJre(java.lang.String file)
JdkUtil.checkForJre(java.lang.String)
@Deprecated public abstract JavaSdkVersion getVersion(java.lang.String versionString)
JavaSdkVersion.fromVersionString(java.lang.String)