@Extension @Symbol(value="jdk") public static class JDK.DescriptorImpl extends ToolDescriptor<JDK>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
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<? extends ToolInstaller> |
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
ToolInstallation s. |
void |
setInstallations(JDK... jdks)
Overwrites
ToolInstallation s. |
configure, doCheckHome, doCheckName, getCategory, getDefaultProperties, getPropertyDescriptors
addHelpFileRedirect, 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, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public String getDisplayName()
Descriptor
Class.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()
ToolDescriptor
ToolInstallation
s.getInstallations
in class ToolDescriptor<JDK>
public void setInstallations(JDK... jdks)
ToolDescriptor
ToolInstallation
s.setInstallations
in class ToolDescriptor<JDK>
jdks
- list of installations;
can be empty but never null.public List<? extends ToolInstaller> getDefaultInstallers()
ToolDescriptor
getDefaultInstallers
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 © 2004–2021. All rights reserved.