return filesWithSuffix("j3md");
}
+ public List<String> getProjectShaderNodeDefs() {
+ return collectProjectFilesWithSuffix("j3sn", new LinkedList<String>());
+ }
+
+ public List<String> getDependenciesShaderNodeDefs() {
+ return collectDependenciesFilesWithSuffix("j3sn", new LinkedList<String>());
+ }
+
public String[] getAssetsWithSuffix(String string) {
return filesWithSuffix(string);
}
private List<String> collectFilesWithSuffix(String suffix) {
List<String> list = new LinkedList<String>();
+ collectProjectFilesWithSuffix(suffix, list);
+ collectDependenciesFilesWithSuffix(suffix, list);
+ return list;
+ }
+
+ private List<String> collectProjectFilesWithSuffix(String suffix, List<String> list) {
FileObject assetsFolder = getAssetFolder();
if (assetsFolder != null) {
Enumeration<FileObject> assets = (Enumeration<FileObject>) assetsFolder.getChildren(true);
}
}
}
+ return list;
+ }
+ private List<String> collectDependenciesFilesWithSuffix(String suffix, List<String> list) {
synchronized (classPathItems) {
// TODO I need to find out if classPathItems contains all jars added to a project
Iterator<ClassPathItem> classPathItemsIter = classPathItems.iterator();
}
}
}
+ return list;
}
-
- return list;
}
public InputStream getResourceAsStream(String name) {