Added
Link Here
|
1 |
/* |
2 |
* Sun Public License Notice |
3 |
* |
4 |
* The contents of this file are subject to the Sun Public License |
5 |
* Version 1.0 (the "License"). You may not use this file except in |
6 |
* compliance with the License. A copy of the License is available at |
7 |
* http://www.sun.com/ |
8 |
* |
9 |
* The Original Code is NetBeans. The Initial Developer of the Original |
10 |
* Code is Sun Microsystems, Inc. Portions Copyright 1997-2005 Sun |
11 |
* Microsystems, Inc. All Rights Reserved. |
12 |
*/ |
13 |
|
14 |
package org.netbeans.spi.java.platform; |
15 |
|
16 |
import org.openide.WizardDescriptor; |
17 |
|
18 |
|
19 |
/** |
20 |
* Defines an API for registering custom Java platform installer. The installer |
21 |
* is responsible for instantiation of {@link JavaPlatform} through the provided |
22 |
* TemplateWizard.Iterator. If your installer selects the platform on the local disk you |
23 |
* probably don't want to use this class, the {@link PlatformInstall} class |
24 |
* creates an platform chooser for you. You want to use this class if the |
25 |
* platform is not on the local disk, eg. you want to download it from the web. |
26 |
* @author Tomas Zezula |
27 |
* @since 1.5 |
28 |
*/ |
29 |
public abstract class CustomPlatformIntall { |
30 |
|
31 |
/** |
32 |
* Returns the {@link WizardDescriptor#InstantiatingIterator} used to install |
33 |
* the platform. |
34 |
* @return TemplateWizard.Iterator instance responsible for instantiating |
35 |
* the platform. The instantiate method of the returned iterator should |
36 |
* return the Set containing the created JavaPlatform. |
37 |
*/ |
38 |
public abstract WizardDescriptor.InstantiatingIterator createIterator(); |
39 |
|
40 |
|
41 |
/** |
42 |
* Returns the diaply name of the platform installer |
43 |
* @return String, the diaplay name |
44 |
*/ |
45 |
public abstract String getDisplayName (); |
46 |
|
47 |
} |