Lines 20-26
Link Here
|
20 |
import java.beans.PropertyChangeSupport; |
20 |
import java.beans.PropertyChangeSupport; |
21 |
|
21 |
|
22 |
|
22 |
|
23 |
import org.openide.filesystems.FileObject; |
|
|
24 |
import org.openide.ErrorManager; |
23 |
import org.openide.ErrorManager; |
25 |
import org.openide.util.NbBundle; |
24 |
import org.openide.util.NbBundle; |
26 |
import org.openide.xml.EntityCatalog; |
25 |
import org.openide.xml.EntityCatalog; |
Lines 98-106
Link Here
|
98 |
libraries = new HashMap(); |
97 |
libraries = new HashMap(); |
99 |
librariesByFileNames = new HashMap(); |
98 |
librariesByFileNames = new HashMap(); |
100 |
LibraryDeclarationHandlerImpl handler = new LibraryDeclarationHandlerImpl(); |
99 |
LibraryDeclarationHandlerImpl handler = new LibraryDeclarationHandlerImpl(); |
101 |
EntityResolver resolver = EntityCatalog.getDefault(); |
100 |
// EntityResolver resolver = EntityCatalog.getDefault(); |
102 |
LibraryDeclarationConvertorImpl convertor = new LibraryDeclarationConvertorImpl(); |
101 |
LibraryDeclarationConvertorImpl convertor = new LibraryDeclarationConvertorImpl(); |
103 |
LibraryDeclarationParser parser = new LibraryDeclarationParser(handler,resolver,convertor); |
102 |
LibraryDeclarationParser parser = new LibraryDeclarationParser(handler, null /*resolver*/,convertor); |
104 |
// parse |
103 |
// parse |
105 |
FileObject libraryDefinitions[] = storage.getChildren(); |
104 |
FileObject libraryDefinitions[] = storage.getChildren(); |
106 |
for (int i = 0; i < libraryDefinitions.length; i++) { |
105 |
for (int i = 0; i < libraryDefinitions.length; i++) { |
Lines 137-145
Link Here
|
137 |
|
136 |
|
138 |
private static LibraryImplementation readLibrary (FileObject descriptorFile, LibraryImplementation impl) throws SAXException, javax.xml.parsers.ParserConfigurationException, IOException { |
137 |
private static LibraryImplementation readLibrary (FileObject descriptorFile, LibraryImplementation impl) throws SAXException, javax.xml.parsers.ParserConfigurationException, IOException { |
139 |
LibraryDeclarationHandlerImpl handler = new LibraryDeclarationHandlerImpl(); |
138 |
LibraryDeclarationHandlerImpl handler = new LibraryDeclarationHandlerImpl(); |
140 |
EntityResolver resolver = EntityCatalog.getDefault(); |
139 |
// EntityResolver resolver = EntityCatalog.getDefault(); |
141 |
LibraryDeclarationConvertorImpl convertor = new LibraryDeclarationConvertorImpl(); |
140 |
LibraryDeclarationConvertorImpl convertor = new LibraryDeclarationConvertorImpl(); |
142 |
LibraryDeclarationParser parser = new LibraryDeclarationParser(handler,resolver,convertor); |
141 |
LibraryDeclarationParser parser = new LibraryDeclarationParser(handler, null /*resolver*/,convertor); |
143 |
handler.setLibrary (impl); |
142 |
handler.setLibrary (impl); |
144 |
readLibrary (descriptorFile, parser); |
143 |
readLibrary (descriptorFile, parser); |
145 |
return handler.getLibrary(); |
144 |
return handler.getLibrary(); |