public abstract class DependentSdkType extends SdkType
Constructor and Description |
---|
DependentSdkType(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkDependency(SdkModel sdkModel)
Checks if dependencies satisfied.
|
protected static Sdk |
createSdkOfType(SdkModel sdkModel,
SdkType sdkType,
Consumer<? super Sdk> sdkCreatedCallback) |
protected Sdk |
fixDependency(SdkModel sdkModel,
Consumer<? super Sdk> sdkCreatedCallback) |
abstract SdkType |
getDependencyType() |
abstract java.lang.String |
getUnsatisfiedDependencyMessage() |
protected abstract boolean |
isValidDependency(Sdk sdk) |
void |
showCustomCreateUI(SdkModel sdkModel,
javax.swing.JComponent parentComponent,
Consumer<Sdk> sdkCreatedCallback) |
boolean |
supportsCustomCreateUI()
If this method returns true, instead of showing the standard file path chooser when a new SDK of the type is created,
the
SdkType.showCustomCreateUI(com.intellij.openapi.projectRoots.SdkModel, javax.swing.JComponent, com.intellij.openapi.projectRoots.Sdk, com.intellij.util.Consumer<com.intellij.openapi.projectRoots.Sdk>) method is called. |
adjustSelectedSdkHome, allowCreationByUser, createAdditionalDataConfigurable, equals, findByName, findInstance, getAllTypes, getComparator, getDefaultDocumentationUrl, getDownloadSdkUrl, getHelpTopic, getHomeChooserDescriptor, getHomeFieldLabel, getIcon, getIconForAddAction, getInvalidHomeMessage, getName, getPresentableName, getVersionString, getVersionString, hashCode, isRelevantForFile, isRootTypeApplicable, isValidSdkHome, loadAdditionalData, loadAdditionalData, sdkHasValidPath, sdkPath, setupSdkPaths, setupSdkPaths, showCustomCreateUI, suggestHomePath, suggestHomePaths, suggestSdkName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isLocalSdk, saveAdditionalData, versionComparator, versionStringComparator
protected boolean checkDependency(SdkModel sdkModel)
protected abstract boolean isValidDependency(Sdk sdk)
public abstract java.lang.String getUnsatisfiedDependencyMessage()
public boolean supportsCustomCreateUI()
SdkType
SdkType.showCustomCreateUI(com.intellij.openapi.projectRoots.SdkModel, javax.swing.JComponent, com.intellij.openapi.projectRoots.Sdk, com.intellij.util.Consumer<com.intellij.openapi.projectRoots.Sdk>)
method is called.supportsCustomCreateUI
in class SdkType
public void showCustomCreateUI(SdkModel sdkModel, javax.swing.JComponent parentComponent, Consumer<Sdk> sdkCreatedCallback)
showCustomCreateUI
in class SdkType
public abstract SdkType getDependencyType()
getDependencyType
in class SdkType
JavaSdkType
,
null otherwiseprotected Sdk fixDependency(SdkModel sdkModel, Consumer<? super Sdk> sdkCreatedCallback)