| java.lang.Object org.netbeans.modules.gsfpath.api.platform.JavaPlatform
All known Subclasses: org.netbeans.modules.gsfpath.platform.FallbackDefaultJavaPlatform,
JavaPlatform | abstract public class JavaPlatform (Code) | | JavaPlatform describes a java platform in a way that the IDE tools may utilize. It may serve as
description of the platform a java project targets, or it may provide access to tools from the
particular SDK installation. It also provides information about individual platforms, for example
the Java platform version implemented, vendor name or implementation version. It is also possible
to enumerate services that the IDE supports, which are implemented as a part of the Platform.
author: Radko Najman, Svata Dedic, Tomas Zezula |
PROP_DISPLAY_NAME | final public static String PROP_DISPLAY_NAME(Code) | | Property name for displayName
|
PROP_JAVADOC_FOLDER | final public static String PROP_JAVADOC_FOLDER(Code) | | Property name for javadocFolders
|
PROP_SOURCE_FOLDER | final public static String PROP_SOURCE_FOLDER(Code) | | Property name for sourceFolders
|
PROP_SYSTEM_PROPERTIES | final public static String PROP_SYSTEM_PROPERTIES(Code) | | Property name for systemProperties
|
JavaPlatform | protected JavaPlatform()(Code) | | Creates a new instance of JavaPlatform
|
addPropertyChangeListener | final public void addPropertyChangeListener(PropertyChangeListener l)(Code) | | Registers a listener to be notified when some of the platform's properties
change
|
findTool | abstract public FileObject findTool(String toolName)(Code) | | Gets the platform tool executable.
Parameters: toolName - the tool platform independent tool name. file representing the tool executable, or null if the tool can not be found |
firePropertyChange | final protected void firePropertyChange(String propName, Object oldValue, Object newValue)(Code) | | Fires PropertyChange to all registered PropertyChangeListeners
Parameters: propName - Parameters: oldValue - Parameters: newValue - |
getBootstrapLibraries | abstract public ClassPath getBootstrapLibraries()(Code) | | Returns a ClassPath, which represents bootstrap libraries for the
runtime environment. The Bootstrap libraries include libraries in
JRE's extension directory, if there are any.
ClassPath representing the bootstrap libs |
getDisplayName | abstract public String getDisplayName()(Code) | | a descriptive, human-readable name of the platform |
getInstallFolders | abstract public Collection<FileObject> getInstallFolders()(Code) | | Retrieves a collection of
FileObject s of one or more folders
where the Platform is installed. Typically it returns one folder, but
in some cases there can be more of them.
collection of installation folders (should be nonempty unless platform is broken) |
getJavadocFolders | abstract public List<URL> getJavadocFolders()(Code) | | Returns the locations of the Javadoc for this platform
or empty collection if the location is not set or invalid
(non-null) list of locations |
getProperties | abstract public Map<String, String> getProperties()(Code) | | Gets some ad-hoc properties defined for this platform.
The precise set of properties is not specified.
Implementations are however advised to include the key
platform.ant.name if they wish to be used in Ant builds;
the value default_platform is conventionally associated
with the default platform.
some properties |
getSourceFolders | abstract public ClassPath getSourceFolders()(Code) | | Returns the locations of the source of platform
or empty collection when the location is not set or is invalid
ClassPath never returns null |
getSpecification | abstract public Specification getSpecification()(Code) | | Returns specification of the Java SDK
Specification |
getStandardLibraries | abstract public ClassPath getStandardLibraries()(Code) | | Returns libraries recognized by default by the platform. Usually
it corresponds to contents of CLASSPATH environment variable.
|
getSystemProperties | final public Map<String, String> getSystemProperties()(Code) | | Gets the java platform system properties.
the java platform system properties |
getVendor | abstract public String getVendor()(Code) | | Returns the vendor of the Java SDK
String |
removePropertyChangeListener | final public void removePropertyChangeListener(PropertyChangeListener l)(Code) | | Removes a listener registered previously
|
setSystemProperties | final protected void setSystemProperties(Map<String, String> sysproperties)(Code) | | Sets the system properties of java platform.
Parameters: sysproperties - the java platform system properties |
|
|