当前页面:
在线文档首页 >
NetBeans API Javadoc 5.5.0
PlatformInstall (NetBeans Java Platform API) - NetBeans API Javadoc 5.5.0
org.netbeans.spi.java.platform
Class PlatformInstall
java.lang.Object
org.netbeans.spi.java.platform.GeneralPlatformInstall
org.netbeans.spi.java.platform.PlatformInstall
public abstract class PlatformInstall
- extends GeneralPlatformInstall
Defines an API for registering custom Java platform installer. The Installer
is responsible for recognizing the platform, through its accept(org.openide.filesystems.FileObject)
method,
and for instantiation itself, through the provided wizard iterator.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlatformInstall
public PlatformInstall()
createIterator
public abstract WizardDescriptor.InstantiatingIterator createIterator(FileObject baseFolder)
- XXX Javadoc for this method is completely inadequate. What does it do?
Determines whether the Recognizer recognizes a Java Platform in
the passed folder. The check done by this method should be quick
and should not involve launching the virtual machine. The framework will
call a more detailed check later.
- Returns:
- TemplateWizard.Iterator instance responsible for instantiating
the platform. The instantiate method of the returned iterator should
return the Set containing the created JavaPlatform.
accept
public abstract boolean accept(FileObject baseFolder)
- Checks whether a given folder contains a platform of the supported type.
- Parameters:
baseFolder
- folder which may be an installation root of a platform
- Returns:
- true if the folder is recognized