public interface SdkDownload
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<SdkDownload> |
EP_NAME |
Modifier and Type | Method and Description |
---|---|
default javax.swing.Icon |
getIconForDownloadAction(SdkTypeId sdkTypeId) |
void |
showDownloadUI(SdkTypeId sdkTypeId,
SdkModel sdkModel,
javax.swing.JComponent parentComponent,
Sdk selectedSdk,
java.util.function.Consumer<SdkDownloadTask> sdkCreatedCallback)
Shows the custom SDK download UI based on selected SDK in parent component.
|
boolean |
supportsDownload(SdkTypeId sdkTypeId)
Returns
true if the extension supports the given SdkType, and other
methods from that interface could be called;
false otherwise |
static final ExtensionPointName<SdkDownload> EP_NAME
boolean supportsDownload(SdkTypeId sdkTypeId)
true
if the extension supports the given SdkType, and other
methods from that interface could be called;
false
otherwisedefault javax.swing.Icon getIconForDownloadAction(SdkTypeId sdkTypeId)
supportsDownload(SdkTypeId)
test
Invoked in the EDT threadvoid showDownloadUI(SdkTypeId sdkTypeId, SdkModel sdkModel, javax.swing.JComponent parentComponent, Sdk selectedSdk, java.util.function.Consumer<SdkDownloadTask> sdkCreatedCallback)
SdkDownloadTask
instance.sdkTypeId
- the same as was used in the supportsDownload(SdkTypeId)
sdkModel
- the list of SDKs currently displayed in the configuration dialog.parentComponent
- the parent component for showing the dialog.selectedSdk
- current selected sdk in parentComponentsdkCreatedCallback
- the callback to which the created SDK is passed.supportsDownload(SdkTypeId)
,
SdkDownloadTask