@Extension public static class JDK.DescriptorImpl extends ToolDescriptor<JDK>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected FormValidation |
checkHomeDirectory(File value)
Checks if the JAVA_HOME is a valid JAVA_HOME path.
|
List<JDKInstaller> |
getDefaultInstallers()
Optional list of installers to be configured by default for new tools of this type.
|
String |
getDisplayName()
Human readable name of this kind of configurable object.
|
JDK[] |
getInstallations()
Configured instances of
ToolInstallations. |
void |
setInstallations(JDK... jdks)
Overwrites
ToolInstallations. |
configure, doCheckHome, doCheckName, getDefaultProperties, getPropertyDescriptorsaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic String getDisplayName()
DescriptorClass.getSimpleName() on Descriptor.clazz, so for example MyThing from some.pkg.MyThing.DescriptorImpl.
Historically some implementations returned null as a way of hiding the descriptor from the UI,
but this is generally managed by an explicit method such as isEnabled or isApplicable.getDisplayName in class Descriptor<ToolInstallation>public JDK[] getInstallations()
ToolDescriptorToolInstallations.getInstallations in class ToolDescriptor<JDK>public void setInstallations(JDK... jdks)
ToolDescriptorToolInstallations.setInstallations in class ToolDescriptor<JDK>jdks - list of installations;
can be empty but never null.public List<JDKInstaller> getDefaultInstallers()
ToolDescriptorgetDefaultInstallers in class ToolDescriptor<JDK>protected FormValidation checkHomeDirectory(File value)
checkHomeDirectory in class ToolDescriptor<JDK>value - a possible value for ToolInstallation.getHome(), known to already exist on the masterFormValidation.ok()Copyright © 2019. All rights reserved.