Lines 45-50
Link Here
|
45 |
package org.netbeans.spi.project.support; |
45 |
package org.netbeans.spi.project.support; |
46 |
|
46 |
|
47 |
import java.util.ArrayList; |
47 |
import java.util.ArrayList; |
|
|
48 |
import java.util.Arrays; |
48 |
import java.util.Collection; |
49 |
import java.util.Collection; |
49 |
import javax.swing.event.ChangeEvent; |
50 |
import javax.swing.event.ChangeEvent; |
50 |
import javax.swing.event.ChangeListener; |
51 |
import javax.swing.event.ChangeListener; |
Lines 58-63
Link Here
|
58 |
import org.openide.util.LookupEvent; |
59 |
import org.openide.util.LookupEvent; |
59 |
import org.openide.util.LookupListener; |
60 |
import org.openide.util.LookupListener; |
60 |
import org.openide.util.lookup.Lookups; |
61 |
import org.openide.util.lookup.Lookups; |
|
|
62 |
import org.openide.util.lookup.ProxyLookup; |
61 |
|
63 |
|
62 |
/** |
64 |
/** |
63 |
* Factory for lookup capable of merging content from registered |
65 |
* Factory for lookup capable of merging content from registered |
Lines 82-87
Link Here
|
82 |
public static Lookup createCompositeLookup(Lookup baseLookup, String folderPath) { |
84 |
public static Lookup createCompositeLookup(Lookup baseLookup, String folderPath) { |
83 |
return new DelegatingLookupImpl(baseLookup, Lookups.forPath(folderPath), folderPath); |
85 |
return new DelegatingLookupImpl(baseLookup, Lookups.forPath(folderPath), folderPath); |
84 |
} |
86 |
} |
|
|
87 |
public static Lookup createCompositeLookup(Lookup baseLookup, String... folderPaths) { |
88 |
Lookup[] providers = new Lookup[folderPaths.length]; |
89 |
for (int i = 0; i < folderPaths.length; i++) { |
90 |
providers[i] = Lookups.forPath(folderPaths[i]); |
91 |
} |
92 |
return new DelegatingLookupImpl(baseLookup, new ProxyLookup(providers), Arrays.toString(folderPaths)); |
93 |
} |
85 |
|
94 |
|
86 |
/** |
95 |
/** |
87 |
* Factory method for creating {@link org.netbeans.spi.project.LookupMerger} instance that merges |
96 |
* Factory method for creating {@link org.netbeans.spi.project.LookupMerger} instance that merges |