| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectSdksModel.NewSdkAction |
SdkModel.Listener| Constructor and Description |
|---|
ProjectSdksModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(SdkModel.Listener listener)
Adds a listener for receiving notifications about changes in the list.
|
void |
addSdk(Sdk sdk)
Adds the specified SDK (already created and initialized) to the model.
|
void |
addSdk(SdkType type,
java.lang.String home,
Consumer<? super Sdk> callback) |
void |
apply() |
void |
apply(MasterDetailsComponent configurable) |
void |
apply(MasterDetailsComponent configurable,
boolean addedOnly) |
java.util.Map<SdkType,ProjectSdksModel.NewSdkAction> |
createAddActions(Condition<? super SdkTypeId> filter) |
void |
createAddActions(DefaultActionGroup group,
javax.swing.JComponent parent,
Consumer<? super Sdk> updateTree,
Condition<? super SdkTypeId> filter) |
void |
createAddActions(DefaultActionGroup group,
javax.swing.JComponent parent,
Sdk selectedSdk,
Consumer<? super Sdk> updateTree,
Condition<? super SdkTypeId> filter) |
java.util.Map<SdkType,ProjectSdksModel.NewSdkAction> |
createDownloadActions(Condition<? super SdkTypeId> filter) |
Sdk |
createSdk(SdkType type,
java.lang.String home) |
Sdk |
createSdk(SdkType type,
java.lang.String suggestedName,
java.lang.String home) |
void |
disposeUIResources() |
void |
doAdd(javax.swing.JComponent parent,
Sdk selectedSdk,
SdkType type,
Consumer<? super Sdk> callback) |
void |
doAdd(javax.swing.JComponent parent,
SdkType type,
Consumer<? super Sdk> callback) |
void |
doAdd(Sdk newSdk,
Consumer<? super Sdk> updateTree) |
void |
doDownload(SdkDownload downloadExtension,
javax.swing.JComponent parent,
Sdk selectedSdk,
SdkType type,
Consumer<? super Sdk> callback) |
Sdk |
findSdk(Sdk modelJdk) |
Sdk |
findSdk(java.lang.String sdkName)
Returns the SDK with the specified name, or
null if none found. |
SdkModel.Listener |
getMulticaster() |
Sdk |
getProjectSdk() |
java.util.HashMap<Sdk,Sdk> |
getProjectSdks() |
Sdk [] |
getSdks()
Returns the list of SDKs in the table.
|
boolean |
isInitialized() |
boolean |
isModified() |
void |
removeListener(SdkModel.Listener listener)
Removes a listener for receiving notifications about changes in the list.
|
void |
removeSdk(Sdk editableObject) |
void |
reset(Project project) |
void |
setProjectSdk(Sdk projectSdk) |
void |
setupInstallableSdk(SdkType type,
SdkDownloadTask item,
Consumer<? super Sdk> callback) |
void |
syncSdks() |
public SdkModel.Listener getMulticaster()
getMulticaster in interface SdkModelpublic Sdk [] getSdks()
SdkModelpublic Sdk findSdk(java.lang.String sdkName)
SdkModelnull if none found.public void addListener(SdkModel.Listener listener)
SdkModeladdListener in interface SdkModelpublic void removeListener(SdkModel.Listener listener)
SdkModelremoveListener in interface SdkModelpublic void syncSdks()
public void reset(Project project)
public void disposeUIResources()
public boolean isModified()
public void apply()
throws ConfigurationException
ConfigurationExceptionpublic void apply(MasterDetailsComponent configurable) throws ConfigurationException
ConfigurationExceptionpublic void apply(MasterDetailsComponent configurable, boolean addedOnly) throws ConfigurationException
ConfigurationExceptionpublic void removeSdk(Sdk editableObject)
public void createAddActions(DefaultActionGroup group, javax.swing.JComponent parent, Consumer<? super Sdk> updateTree, Condition<? super SdkTypeId> filter)
public void createAddActions(DefaultActionGroup group, javax.swing.JComponent parent, Sdk selectedSdk, Consumer<? super Sdk> updateTree, Condition<? super SdkTypeId> filter)
public java.util.Map<SdkType,ProjectSdksModel.NewSdkAction> createDownloadActions(Condition<? super SdkTypeId> filter)
public java.util.Map<SdkType,ProjectSdksModel.NewSdkAction> createAddActions(Condition<? super SdkTypeId> filter)
public void doAdd(javax.swing.JComponent parent,
SdkType type,
Consumer<? super Sdk> callback)
public void doDownload(SdkDownload downloadExtension, javax.swing.JComponent parent, Sdk selectedSdk, SdkType type, Consumer<? super Sdk> callback)
public void doAdd(javax.swing.JComponent parent,
Sdk selectedSdk,
SdkType type,
Consumer<? super Sdk> callback)
public void setupInstallableSdk(SdkType type, SdkDownloadTask item, Consumer<? super Sdk> callback)
public void addSdk(Sdk sdk)
SdkModelpublic Sdk getProjectSdk()
public void setProjectSdk(Sdk projectSdk)
public boolean isInitialized()