|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.api.java.platform.JavaPlatform
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.
Field Summary | |
static String |
PROP_DISPLAY_NAME
Property name for displayName |
static String |
PROP_JAVADOC_FOLDER
Property name for javadocFolders |
static String |
PROP_SOURCE_FOLDER
Property name for sourceFolders |
static String |
PROP_SYSTEM_PROPERTIES
Property name for systemProperties |
Constructor Summary | |
protected |
JavaPlatform()
Creates a new instance of JavaPlatform |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
Registers a listener to be notified when some of the platform's properties change |
abstract FileObject |
findTool(String toolName)
Gets the platform tool executable. |
protected void |
firePropertyChange(String propName,
Object oldValue,
Object newValue)
Fires PropertyChange to all registered PropertyChangeListeners |
abstract ClassPath |
getBootstrapLibraries()
Returns a ClassPath, which represents bootstrap libraries for the runtime environment. |
static JavaPlatform |
getDefault()
|
abstract String |
getDisplayName()
|
abstract Collection |
getInstallFolders()
Retrieves a collection of FileObject s of one or more folders
where the Platform is installed. |
abstract List |
getJavadocFolders()
Returns the locations of the Javadoc for this platform or empty collection if the location is not set or invalid |
abstract Map |
getProperties()
Gets the properties defined for java platform. |
abstract ClassPath |
getSourceFolders()
Returns the locations of the source of platform or empty collection when the location is not set or is invalid |
abstract Specification |
getSpecification()
Returns specification of the Java SDK |
abstract ClassPath |
getStandardLibraries()
Returns libraries recognized by default by the platform. |
Map |
getSystemProperties()
Gets the java platform system properties. |
abstract String |
getVendor()
Returns the vendor of the Java SDK |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a listener registered previously |
protected void |
setSystemProperties(Map sysproperties)
Sets the system properties of java platform. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PROP_DISPLAY_NAME
public static final String PROP_SOURCE_FOLDER
public static final String PROP_JAVADOC_FOLDER
public static final String PROP_SYSTEM_PROPERTIES
Constructor Detail |
protected JavaPlatform()
Method Detail |
public abstract String getDisplayName()
public final void addPropertyChangeListener(PropertyChangeListener l)
public final void removePropertyChangeListener(PropertyChangeListener l)
public abstract Map getProperties()
public final Map getSystemProperties()
public abstract ClassPath getBootstrapLibraries()
public abstract ClassPath getStandardLibraries()
public abstract String getVendor()
public abstract Specification getSpecification()
public abstract Collection getInstallFolders()
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.
public abstract FileObject findTool(String toolName)
toolName
- the tool platform independent tool name.
public abstract ClassPath getSourceFolders()
public abstract List getJavadocFolders()
public static JavaPlatform getDefault()
protected final void firePropertyChange(String propName, Object oldValue, Object newValue)
propName
- oldValue
- newValue
- protected final void setSystemProperties(Map sysproperties)
sysproperties
- the java platform system properties
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |