Lines 174-180
Link Here
|
174 |
} |
174 |
} |
175 |
} |
175 |
} |
176 |
|
176 |
|
177 |
private static void registerLibraryTypeProvider () throws Exception { |
177 |
static void registerLibraryTypeProvider () throws Exception { |
178 |
StringTokenizer tk = new StringTokenizer("org-netbeans-api-project-libraries/LibraryTypeProviders","/"); |
178 |
StringTokenizer tk = new StringTokenizer("org-netbeans-api-project-libraries/LibraryTypeProviders","/"); |
179 |
FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot(); |
179 |
FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot(); |
180 |
while (tk.hasMoreElements()) { |
180 |
while (tk.hasMoreElements()) { |
Lines 192-198
Link Here
|
192 |
} |
192 |
} |
193 |
} |
193 |
} |
194 |
|
194 |
|
195 |
private static void createLibraryDefinition (final FileObject storageFolder, final String libName) throws IOException { |
195 |
static void createLibraryDefinition (final FileObject storageFolder, final String libName) throws IOException { |
196 |
storageFolder.getFileSystem().runAtomicAction(new FileSystem.AtomicAction() { |
196 |
storageFolder.getFileSystem().runAtomicAction(new FileSystem.AtomicAction() { |
197 |
public void run () throws IOException { |
197 |
public void run () throws IOException { |
198 |
FileObject defFile = storageFolder.createData(libName,"xml"); |
198 |
FileObject defFile = storageFolder.createData(libName,"xml"); |
Lines 222-228
Link Here
|
222 |
}); |
222 |
}); |
223 |
} |
223 |
} |
224 |
|
224 |
|
225 |
private static class TestListener implements PropertyChangeListener { |
225 |
static class TestListener implements PropertyChangeListener { |
226 |
|
226 |
|
227 |
private List<String> eventNames = new ArrayList<String>(); |
227 |
private List<String> eventNames = new ArrayList<String>(); |
228 |
|
228 |
|
Lines 241-247
Link Here
|
241 |
} |
241 |
} |
242 |
|
242 |
|
243 |
|
243 |
|
244 |
private static class TestEntityCatalog extends EntityCatalog { |
244 |
static class TestEntityCatalog extends EntityCatalog { |
245 |
|
245 |
|
246 |
private static final String DTD = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + |
246 |
private static final String DTD = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + |
247 |
"<!ELEMENT library (name, type, description?, localizing-bundle?, volume*) >\n" + |
247 |
"<!ELEMENT library (name, type, description?, localizing-bundle?, volume*) >\n" + |