use of com.developmentontheedge.be5.metadata.model.ProjectFileStructure in project be5 by DevelopmentOnTheEdge.
the class YamlDeserializer method readProjectFileStructure.
private ProjectFileStructure readProjectFileStructure(BaseDeserializer deserializer, final Map<String, Object> serializedPfs, final Project project) {
final ProjectFileStructure pfs = new ProjectFileStructure(project);
deserializer.readFields(pfs, serializedPfs, Fields.projectFileStructure());
return pfs;
}
use of com.developmentontheedge.be5.metadata.model.ProjectFileStructure in project be5 by DevelopmentOnTheEdge.
the class ModuleLoader2 method getFileSystem.
/**
* Returns BeanExplorerProjectFileSystem for given module if possible
*/
public static ProjectFileSystem getFileSystem(Project app, String moduleName) {
if (app.getProjectOrigin().equals(moduleName)) {
return new ProjectFileSystem(app);
}
Path modulePath = ModuleLoader2.getModulePath(moduleName);
if (modulePath != null) {
Project project = new Project(moduleName);
project.setLocation(modulePath);
project.setProjectFileStructure(new ProjectFileStructure(project));
return new ProjectFileSystem(project);
}
return null;
}
Aggregations