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_PROPERTYLIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTYCLASSPATH_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, setSourcePathgetAttributes, getChildren, getData, mayHaveChildrengetToolTipText, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsanitizeVersionNumberequivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, initFromLibrary, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setNameisLocked, setClassPath, setDocPath, setLocked, setSourcePathgetAttributedLabel, getToolTipText, toStringpublic 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 JPathspublic URLPath getSourcePath()
getSourcePath in interface JPathspublic URLPath getDocPath()
getDocPath in interface JPathspublic java.net.URL getJavaExecutable()
JDKgetJavaExecutable in interface JDKpublic void setJavaExecutable(java.net.URL url)
JDKsetJavaExecutable in interface JDKurl - A URL which should not be nullpublic java.lang.String[] getInstalledVMs()
JDKgetInstalledVMs in interface JDKpublic void setInstalledVMs(java.lang.String[] installedVMs)
JDKsetInstalledVMs in interface JDKinstalledVMs - The installed VM names which should not be nullpublic VersionNumber getJavaVersion()
JDKgetJavaVersion in interface JDKpublic void setJavaVersion(VersionNumber ver)
JDKsetJavaVersion in interface JDKver - A version which should not be nullpublic java.net.URL getSDKBinDir()
JDKgetSDKBinDir in interface JDKpublic void setSDKBinDir(java.net.URL url)
JDKsetSDKBinDir in interface JDKurl - A URL which should not be nullpublic java.lang.String getSDKBinJavaExecutableNoConsole()
JDKgetSDKBinJavaExecutableNoConsole in interface JDKpublic java.lang.String getJavaExecutableNoConsole()
JDKgetJavaExecutableNoConsole in interface JDKpublic java.lang.String getShortLabel()
DefaultDisplayableString.getShortLabel in interface DisplayablegetShortLabel in class AbstractLibraryDisplayable
that can be shown to the user.Displayable.getShortLabel()public java.lang.String getLongLabel()
DefaultDisplayableDefaultDisplayable.getShortLabel().getLongLabel in interface DisplayablegetLongLabel in class DefaultDisplayableDisplayable that
can be shown to the user.Displayable.getLongLabel()public javax.swing.Icon getIcon()
DefaultDisplayablegetIcon in interface DisplayablegetIcon in class AbstractLibraryIcon 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