public final class AddinJDK extends AbstractLibrary implements JDK
URLPath
objects passed into the constructor, and these
effectively immutable copies are always returned by getClassPath()
,
getSourcePath()
, and getDocPath()
.JDK_EXEC_PROPERTY, JDK_INSTALLED_VMS_PROPERTY, JDK_NAME_PROPERTY, JDK_SDK_BIN_DIR_PROPERTY, JDK_VERSION_NUMBER_PROPERTY
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTY
CLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY
Constructor and Description |
---|
AddinJDK(java.lang.String name,
URLPath clsPath,
URLPath srcPath,
URLPath docPath,
java.net.URL exeURL,
VersionNumber version,
java.net.URL sdkBinDir) |
Modifier and Type | Method and Description |
---|---|
URLPath |
getClassPath() |
URLPath |
getDocPath() |
javax.swing.Icon |
getIcon()
This implementation returns a plain document icon.
|
java.lang.String[] |
getInstalledVMs()
Get the installed VM names of this JDK.
|
java.net.URL |
getJavaExecutable()
Get the URL of the Java executable.
|
java.lang.String |
getJavaExecutableNoConsole()
Get the name of the non console Java executable if it exists.
|
VersionNumber |
getJavaVersion()
Get the Java version of this JDK expressed as a VersionNumber.
|
java.lang.String |
getLongLabel()
This implementation delegates to
DefaultDisplayable.getShortLabel() . |
java.lang.String |
getName() |
java.net.URL |
getSDKBinDir()
Get the URL of the bin directory of this JDK.
|
java.lang.String |
getSDKBinJavaExecutableNoConsole()
Get the name of the non console Java executable if it exists.
|
java.lang.String |
getShortLabel()
This implementation returns a place-holder
String . |
URLPath |
getSourcePath() |
java.util.Properties |
getSystemProperties()
Get the Java system proprerties as they would be set when running in this
JDK.
|
void |
setInstalledVMs(java.lang.String[] installedVMs)
Set the installed VM names of this JDK.
|
void |
setJavaExecutable(java.net.URL url)
Set the URL of the Java executable.
|
void |
setJavaVersion(VersionNumber ver)
Set the Java version of this JDK.
|
void |
setSDKBinDir(java.net.URL url)
Set the URL of the bin directory of this JDK.
|
copyToImpl, equals, equalsImpl, equivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, initFromLibrary, isDirty, isLocked, markDirty, setClassPath, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setDocPath, setLocked, setName, setSourcePath
getAttributes, getChildren, getData, mayHaveChildren
getToolTipText, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
sanitizeVersionNumber
equivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, initFromLibrary, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setName
isLocked, setClassPath, setDocPath, setLocked, setSourcePath
getAttributedLabel, getToolTipText, toString
public AddinJDK(java.lang.String name, URLPath clsPath, URLPath srcPath, URLPath docPath, java.net.URL exeURL, VersionNumber version, java.net.URL sdkBinDir)
public java.lang.String getName()
public URLPath getClassPath()
getClassPath
in interface JPaths
public URLPath getSourcePath()
getSourcePath
in interface JPaths
public URLPath getDocPath()
getDocPath
in interface JPaths
public java.net.URL getJavaExecutable()
JDK
getJavaExecutable
in interface JDK
public void setJavaExecutable(java.net.URL url)
JDK
setJavaExecutable
in interface JDK
url
- A URL which should not be nullpublic java.lang.String[] getInstalledVMs()
JDK
getInstalledVMs
in interface JDK
public void setInstalledVMs(java.lang.String[] installedVMs)
JDK
setInstalledVMs
in interface JDK
installedVMs
- The installed VM names which should not be nullpublic VersionNumber getJavaVersion()
JDK
getJavaVersion
in interface JDK
public void setJavaVersion(VersionNumber ver)
JDK
setJavaVersion
in interface JDK
ver
- A version which should not be nullpublic java.net.URL getSDKBinDir()
JDK
getSDKBinDir
in interface JDK
public void setSDKBinDir(java.net.URL url)
JDK
setSDKBinDir
in interface JDK
url
- A URL which should not be nullpublic java.lang.String getSDKBinJavaExecutableNoConsole()
JDK
getSDKBinJavaExecutableNoConsole
in interface JDK
public java.lang.String getJavaExecutableNoConsole()
JDK
getJavaExecutableNoConsole
in interface JDK
public java.lang.String getShortLabel()
DefaultDisplayable
String
.getShortLabel
in interface Displayable
getShortLabel
in class AbstractLibrary
Displayable
that can be shown to the user.Displayable.getShortLabel()
public java.lang.String getLongLabel()
DefaultDisplayable
DefaultDisplayable.getShortLabel()
.getLongLabel
in interface Displayable
getLongLabel
in class DefaultDisplayable
Displayable
that
can be shown to the user.Displayable.getLongLabel()
public javax.swing.Icon getIcon()
DefaultDisplayable
getIcon
in interface Displayable
getIcon
in class AbstractLibrary
Icon
to be displayed for the
Displayable
.Displayable.getIcon()
public java.util.Properties getSystemProperties()
JDK
-D
) or through API calls (such as
System.setProperty(java.lang.String, java.lang.String)
). The properties returned by this method may
or may not match the actual properties during a future execution of the
JVM. Callers should typically only use the standard Java properties
relating to the JDK implementation itself, such as java.home
or
java.version
, which will typically have the same values whenever
this JDK is run.getSystemProperties
in interface JDK