Skip navigation links
oracle.jdeveloper.library
Class AddinJDK
java.lang.Object
oracle.ide.model.DefaultDisplayable
oracle.ide.model.DefaultElement
oracle.jdeveloper.library.LibraryElement
oracle.jdeveloper.library.AbstractLibrary
oracle.jdeveloper.library.AddinJDK
- All Implemented Interfaces:
- Displayable, Element, Dirtyable, JDK, JPaths, Library
-
public final class AddinJDK
- extends AbstractLibrary
- implements JDK
A JDK automatically installed by the extension framework. Thread Safety: instances of this class are immutable, and can be used safely from multiple threads. A copy is taken of the (mutable) URLPath objects passed into the constructor, and these effectively immutable copies are always returned by getClassPath(), getSourcePath(), and getDocPath().
- Since:
- 9.0.2
| Methods inherited from class oracle.jdeveloper.library.AbstractLibrary |
copyToImpl, equals, equalsImpl, equivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, initFromLibrary, isDirty, isLocked, markDirty, setClassPath, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setDocPath, setLocked, setName, setSourcePath |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AddinJDK
public AddinJDK(java.lang.String name,
URLPath clsPath,
URLPath srcPath,
URLPath docPath,
java.net.URL exeURL,
VersionNumber version,
java.net.URL sdkBinDir)
getName
public java.lang.String getName()
-
- Specified by:
getName in interface Library
-
- Returns:
- the Library name, or null
getClassPath
public URLPath getClassPath()
-
- Specified by:
getClassPath in interface JPaths
-
- Returns:
- May be null.
getSourcePath
public URLPath getSourcePath()
-
- Specified by:
getSourcePath in interface JPaths
-
- Returns:
- May be null.
getDocPath
public URLPath getDocPath()
-
- Specified by:
getDocPath in interface JPaths
-
- Returns:
- May be null.
getJavaExecutable
public java.net.URL getJavaExecutable()
-
- Specified by:
getJavaExecutable in interface JDK
setJavaExecutable
public void setJavaExecutable(java.net.URL url)
-
- Specified by:
setJavaExecutable in interface JDK
getInstalledVMs
public java.lang.String[] getInstalledVMs()
-
- Specified by:
getInstalledVMs in interface JDK
setInstalledVMs
public void setInstalledVMs(java.lang.String[] installedVMs)
-
- Specified by:
setInstalledVMs in interface JDK
getJavaVersion
public VersionNumber getJavaVersion()
-
- Specified by:
getJavaVersion in interface JDK
setJavaVersion
public void setJavaVersion(VersionNumber ver)
-
- Specified by:
setJavaVersion in interface JDK
getSDKBinDir
public java.net.URL getSDKBinDir()
-
- Specified by:
getSDKBinDir in interface JDK
setSDKBinDir
public void setSDKBinDir(java.net.URL url)
-
- Specified by:
setSDKBinDir in interface JDK
getSDKBinJavaExecutableNoConsole
public java.lang.String getSDKBinJavaExecutableNoConsole()
-
- Specified by:
getSDKBinJavaExecutableNoConsole in interface JDK
getJavaExecutableNoConsole
public java.lang.String getJavaExecutableNoConsole()
-
- Specified by:
getJavaExecutableNoConsole in interface JDK
getShortLabel
public java.lang.String getShortLabel()
- Description copied from class:
DefaultDisplayable
- This implementation returns a place-holder
String.
-
- Specified by:
getShortLabel in interface Displayable
- Overrides:
getShortLabel in class AbstractLibrary
-
- Returns:
- a short descriptive label of the
Displayable that can be shown to the user.
- See Also:
Displayable.getShortLabel()
getLongLabel
public java.lang.String getLongLabel()
- Description copied from class:
DefaultDisplayable
- This implementation delegates to
DefaultDisplayable.getShortLabel().
-
- Specified by:
getLongLabel in interface Displayable
- Overrides:
getLongLabel in class DefaultDisplayable
-
- Returns:
- a long descriptive label of the
Displayable that can be shown to the user.
- See Also:
Displayable.getLongLabel()
getIcon
public javax.swing.Icon getIcon()
- Description copied from class:
DefaultDisplayable
- This implementation returns a plain document icon.
-
- Specified by:
getIcon in interface Displayable
- Overrides:
getIcon in class AbstractLibrary
-
- Returns:
- the
Icon to be displayed for the Displayable.
- See Also:
Displayable.getIcon()
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.