| java.lang.Object org.netbeans.modules.gsfpath.api.platform.JavaPlatformManager
JavaPlatformManager | final public class JavaPlatformManager (Code) | | 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.
author: Radko Najman, Svata Dedic, Tomas Zezula |
Method Summary | |
public void | addPropertyChangeListener(PropertyChangeListener l) Adds PropertyChangeListener to the JavaPlatformManager, the listener is notified
when the platform is added,removed or modified. | public static synchronized JavaPlatformManager | getDefault() Gets an instance of JavaPlatformManager. | public JavaPlatform | getDefaultPlatform() Returns default platform. | public synchronized JavaPlatform[] | getInstalledPlatforms() Gets an array of JavaPlatfrom objects. | public JavaPlatform[] | getPlatforms(String platformDisplayName, Specification platformSpec) Returns platform given by display name and/or specification.
Parameters: platformDisplayName - display name of platform or null for any name. Parameters: 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 | removePropertyChangeListener(PropertyChangeListener l) Removes PropertyChangeListener to the JavaPlatformManager. |
PROP_INSTALLED_PLATFORMS | final public static String PROP_INSTALLED_PLATFORMS(Code) | | Property name of the installedPlatforms property
|
JavaPlatformManager | public JavaPlatformManager()(Code) | | Creates a new instance of JavaPlatformManager
|
addPropertyChangeListener | public void addPropertyChangeListener(PropertyChangeListener l)(Code) | | Adds PropertyChangeListener to the JavaPlatformManager, the listener is notified
when the platform is added,removed or modified.
Parameters: l - the listener, can not be null |
getDefault | public static synchronized JavaPlatformManager getDefault()(Code) | | Gets an instance of JavaPlatformManager. It the instance doesn't exist it will be created.
the instance of JavaPlatformManager |
getDefaultPlatform | public JavaPlatform getDefaultPlatform()(Code) | | Returns default platform. The platform the IDE is running on.
the default platform (never null as of org.netbeans.modules.gsfpath.platform/1 1.9) |
getInstalledPlatforms | public synchronized JavaPlatform[] getInstalledPlatforms()(Code) | | Gets an array of JavaPlatfrom objects.
the array of java platform definitions. |
getPlatforms | public JavaPlatform[] getPlatforms(String platformDisplayName, Specification platformSpec)(Code) | | Returns platform given by display name and/or specification.
Parameters: platformDisplayName - display name of platform or null for any name. Parameters: 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. JavaPlatform[], never returns null, may return empty array when no platform matches givenquery. |
removePropertyChangeListener | public void removePropertyChangeListener(PropertyChangeListener l)(Code) | | Removes PropertyChangeListener to the JavaPlatformManager.
Parameters: l - the listener, can not be null |
|
|