This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 61476
Collapse All | Expand All

(-)apichanges.xml (+21 lines)
Lines 76-81 Link Here
76
76
77
    <changes>
77
    <changes>
78
78
79
        <change id="CustomPlatformInstall">
80
            <api name="general"/>
81
            <summary>Added new CustomPlatformInstall implemented by the platform installers which does not use the file chooser to select new platform</summary>
82
            <version major="1" minor="5"/>
83
            <date day="27" month="7" year="2005"/>
84
            <author login="tzezula"/>
85
            <compatibility addition="yes"/>
86
            <description>
87
                <p>
88
                There are some platform installers which does not use the local disk as source of the java platform,
89
                for example they download the java platform from the web. Such installers cannot use the current
90
                PlatformInstall which is file oriented. The CustomPlatformInstall allows to platform install
91
                provider to implement its own way of installing the new platform. The PlatformInstall is still supported.
92
                If the module provides the PlatformInstall in the global lookup, the java platform module does the
93
                java platform chooser for it, the behavior is not changed. If the module provides the CustomPlatformInstall
94
                in the global lookup, it has to do the platform selection by itself.
95
                </p>
96
            </description>
97
            <class package="org.netbeans.spi.java.platform" name="CustomPlatformInstall"/>
98
            <issue number="61475"/>
99
        </change>
79
        <change id="rel-vers-1">
100
        <change id="rel-vers-1">
80
            <api name="general"/>
101
            <api name="general"/>
81
            <summary>Switched to major release version 1</summary>
102
            <summary>Switched to major release version 1</summary>
(-)manifest.mf (-1 / +1 lines)
Lines 1-6 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.netbeans.modules.java.platform/1
2
OpenIDE-Module: org.netbeans.modules.java.platform/1
3
OpenIDE-Module-Specification-Version: 1.4
3
OpenIDE-Module-Specification-Version: 1.5
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/java/platform/Bundle.properties
4
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/java/platform/Bundle.properties
5
OpenIDE-Module-Layer: org/netbeans/modules/java/platform/resources/layer.xml
5
OpenIDE-Module-Layer: org/netbeans/modules/java/platform/resources/layer.xml
6
6
(-)src/org/netbeans/spi/java/platform/CustomPlatformIntall.java (+47 lines)
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
}

Return to bug 61476