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 210716
Collapse All | Expand All

(-)a/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/libraries/J2SELibraryTypeProvider.java (-7 / +2 lines)
Lines 75-86 Link Here
75
import org.openide.util.Exceptions;
75
import org.openide.util.Exceptions;
76
import org.openide.util.Lookup;
76
import org.openide.util.Lookup;
77
import org.openide.util.NbBundle;
77
import org.openide.util.NbBundle;
78
import org.openide.util.lookup.ServiceProvider;
78
79
80
@ServiceProvider(service=LibraryTypeProvider.class, path="org-netbeans-api-project-libraries/LibraryTypeProviders")
79
public final class J2SELibraryTypeProvider implements LibraryTypeProvider {
81
public final class J2SELibraryTypeProvider implements LibraryTypeProvider {
80
82
81
    private J2SELibraryTypeProvider () {
82
    }
83
84
    private static final Logger LOG = Logger.getLogger(J2SELibraryTypeProvider.class.getName());
83
    private static final Logger LOG = Logger.getLogger(J2SELibraryTypeProvider.class.getName());
85
84
86
    private static final String LIB_PREFIX = "libs.";       //NOI18N
85
    private static final String LIB_PREFIX = "libs.";       //NOI18N
Lines 182-191 Link Here
182
        return Lookup.EMPTY;
181
        return Lookup.EMPTY;
183
    }
182
    }
184
183
185
    public static LibraryTypeProvider create () {
186
        return new J2SELibraryTypeProvider();
187
    }
188
189
    private static boolean addLibraryIntoBuild(LibraryImplementation impl, EditableProperties props) {
184
    private static boolean addLibraryIntoBuild(LibraryImplementation impl, EditableProperties props) {
190
        boolean modified = false;
185
        boolean modified = false;
191
        for (int i=0; i<VOLUME_TYPES.length; i++) {
186
        for (int i=0; i<VOLUME_TYPES.length; i++) {
(-)a/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/resources/layer.xml (-11 lines)
Lines 45-61 Link Here
45
-->
45
-->
46
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
46
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
47
<filesystem>
47
<filesystem>
48
    <folder name="org-netbeans-api-project-libraries">
49
        <folder name="LibraryTypeProviders">
50
            <file name="j2se_library_provider.instance">
51
                <attr name="instanceOf" stringvalue="org.netbeans.spi.project.libraries.LibraryTypeProvider"/>
52
                <attr name="instanceClass" stringvalue="org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryTypeProvider"/>
53
                <attr name="instanceCreate" methodvalue="org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryTypeProvider.create"/>
54
                <attr name="position" intvalue="100"/>
55
            </file>
56
        </folder>
57
    </folder>
58
59
    <folder name="org-netbeans-api-java">
48
    <folder name="org-netbeans-api-java">
60
        <folder name="platform">
49
        <folder name="platform">
61
            <folder name="installers">
50
            <folder name="installers">

Return to bug 210716