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

(-)loaders/api/apichanges.xml (+16 lines)
Lines 78-83 Link Here
78
78
79
  <changes>
79
  <changes>
80
     <change>
80
     <change>
81
      <summary>Added <code>DataLoaderPool.getDefault()</code></summary>
82
        <version major="5" minor="1"/>
83
        <date day="3" month="2" year="2005"/>
84
        <author login="jtulach"/>
85
        <compatibility addition="yes" binary="compatible" semantic="compatible" />
86
        <description>
87
        <p>
88
            <code>DataLoaderPool</code> now has a new method <code>getDefault()</code>
89
            to allow simple access to the default system loader pool.
90
        </p>
91
        </description>
92
        <class package="org.openide.loaders" name="DataLoaderPool" />
93
        <issue number="41650"/>
94
    </change>
95
96
     <change>
81
        <api name="loaders"/>
97
        <api name="loaders"/>
82
      <summary>Actions for <code>DataLoader</code> can be specified in a layer</summary>
98
      <summary>Actions for <code>DataLoader</code> can be specified in a layer</summary>
83
        <version major="5" minor="0"/>
99
        <version major="5" minor="0"/>
(-)loaders/src/org/openide/loaders/DataLoaderPool.java (-1 / +9 lines)
Lines 57-63 Link Here
57
    private static MultiFileLoader[] defaultLoaders;
57
    private static MultiFileLoader[] defaultLoaders;
58
    
58
    
59
    private static DataLoaderPool DEFAULT;
59
    private static DataLoaderPool DEFAULT;
60
    static synchronized DataLoaderPool getDefault() {
60
    
61
    /** Getter for the default pool of loaders used in the system.
62
     * By default it looks it up using Lookup, if not found it provides 
63
     * default one that does lookup individual loaders using Lookup.
64
     *
65
     * @return instance of system DataLoaderPool
66
     * @since 5.1
67
     */
68
    public static synchronized DataLoaderPool getDefault() {
61
        if (DEFAULT == null) {
69
        if (DEFAULT == null) {
62
            DEFAULT = (DataLoaderPool)Lookup.getDefault().lookup(DataLoaderPool.class);
70
            DEFAULT = (DataLoaderPool)Lookup.getDefault().lookup(DataLoaderPool.class);
63
            if (DEFAULT == null) {
71
            if (DEFAULT == null) {

Return to bug 41650