Search in sources :

Example 1 with ProjectFileStructure

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;
}
Also used : ProjectFileStructure(com.developmentontheedge.be5.metadata.model.ProjectFileStructure)

Example 2 with ProjectFileStructure

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;
}
Also used : Path(java.nio.file.Path) Project(com.developmentontheedge.be5.metadata.model.Project) ProjectFileStructure(com.developmentontheedge.be5.metadata.model.ProjectFileStructure)

Aggregations

ProjectFileStructure (com.developmentontheedge.be5.metadata.model.ProjectFileStructure)2 Project (com.developmentontheedge.be5.metadata.model.Project)1 Path (java.nio.file.Path)1