站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

PlatformInstall (NetBeans Java Platform API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.spi.java.platform
Class PlatformInstall

java.lang.Object
  extended byorg.netbeans.spi.java.platform.PlatformInstall

public abstract class PlatformInstall
extends Object

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 TemplateWizard.Iterator.


Constructor Summary
PlatformInstall()
           
 
Method Summary
abstract  boolean accept(FileObject baseFolder)
          Checks whether the folder actually contains the supported SDK type.
abstract  WizardDescriptor.InstantiatingIterator createIterator(FileObject baseFolder)
          Determines whether the Recognizer recognizes a Java Platform in the passed folder.
abstract  String getDisplayName()
          Returns the diaply name of the platform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformInstall

public PlatformInstall()
Method Detail

createIterator

public abstract WizardDescriptor.InstantiatingIterator createIterator(FileObject baseFolder)
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 the folder actually contains the supported SDK type.

Parameters:
baseFolder - folder where the SDK is installed
Returns:
true if the PlatformInstall recognizes the folder

getDisplayName

public abstract String getDisplayName()
Returns the diaply name of the platform.

Returns:
String, the diaplay name

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.