|
org.netbeans.modules.java.platform/1 1.7.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.api.java.platform.JavaPlatformManager
public final class JavaPlatformManager
JavaPlatformManager provides access to list of installed Java Platforms in the system. It can enumerate them, assign serializable IDs to their instances. It also defines a `default' platform, which represents NetBeans' own runtime environment.
Field Summary | |
---|---|
static String |
PROP_INSTALLED_PLATFORMS
Property name of the installedPlatforms property |
Constructor Summary | |
---|---|
JavaPlatformManager()
Creates a new instance of JavaPlatformManager |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds PropertyChangeListener to the JavaPlatformManager, the listener is notified when the platform is added,removed or modified. |
static JavaPlatformManager |
getDefault()
Gets an instance of JavaPlatformManager. |
JavaPlatform |
getDefaultPlatform()
Returns default platform. |
JavaPlatform[] |
getInstalledPlatforms()
Gets an array of JavaPlatfrom objects. |
JavaPlatform[] |
getPlatforms(String platformDisplayName,
Specification platformSpec)
Returns platform given by display name and/or specification. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes PropertyChangeListener to the JavaPlatformManager. |
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_INSTALLED_PLATFORMS
Constructor Detail |
---|
public JavaPlatformManager()
Method Detail |
---|
public static JavaPlatformManager getDefault()
public JavaPlatform getDefaultPlatform()
public JavaPlatform[] getInstalledPlatforms()
public JavaPlatform[] getPlatforms(String platformDisplayName, Specification platformSpec)
platformDisplayName
- display name of platform or null for any name.platformSpec
- Specification of platform or null for platform of any type, in the specification null means all.
Specification with null profiles means none or any profile.
Specification with Profile(null,null) means any profile but at least 1.
For example Specification ("CLDC", new Profile[] { new Profile("MIMDP",null), new Profile(null,null)})
matches all CLDC platforms with MIDP profile of any versions and any additional profile.
public void addPropertyChangeListener(PropertyChangeListener l)
l
- the listener, can not be nullpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener, can not be null
|
org.netbeans.modules.java.platform/1 1.7.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |