pub async fn new_with_opened_project
    (project_manager:Rc<dyn project_manager::API>, name:ProjectName) -> FallibleResult<Self> {
        // TODO[ao]: Reuse of initializer used in previous code design. It should be soon replaced
        //      anyway, because we will soon resign from the "open or create" approach when opening
        //      IDE. See https://github.com/enso-org/ide/issues/1492 for details.
        let initializer = initializer::WithProjectManager::new(project_manager.clone_ref(),name);
        let model       = initializer.initialize_project_model().await?;
        Ok(Self::new_with_project(project_manager,model))
    }
/// Create a project controller handle which opens the project with the given name, or creates it
/// if it does not exist.
Create a project controller handle which opens the project with the given name, or creates it
if it does not exist.
Create a project controller handle which opens the project with the given name or creates it if it does not exist .
pub async fn new_with_opened_project
    (project_manager:Rc<dyn project_manager::API>, name:ProjectName) -> FallibleResult<Self> {
        // TODO[ao]: Reuse of initializer used in previous code design. It should be soon replaced
        //      anyway, because we will soon resign from the "open or create" approach when opening
        //      IDE. See https://github.com/enso-org/ide/issues/1492 for details.
        let initializer = initializer::WithProjectManager::new(project_manager.clone_ref(),name);
        let model       = initializer.initialize_project_model().await?;
        Ok(Self::new_with_project(project_manager,model))
    }
pub async fn new_with_opened_project ( project_manager : Rc < dyn project_manager :: API > , name : ProjectName ) -> FallibleResult < Self > { // TODO[ao]: Reuse of initializer used in previous code design. It should be soon replaced //      anyway, because we will soon resign from the "open or create" approach when opening //      IDE. See https://github.com/enso-org/ide/issues/1492 for details. let initializer = initializer :: WithProjectManager :: new ( project_manager . clone_ref ( ) , name ) ; let model = initializer . initialize_project_model ( ) . await ? ; Ok ( Self :: new_with_project ( project_manager , model ) ) }
Create a project controller handle which opens the project with the given name, or creates it
if it does not exist.
Create a project controller handle which opens the project with the given name or creates it if it does not exist .
project_manager
Rc<dyn project_manager::API>
name
ProjectName
project_manager
Rc<dyn project_manager::API>
name
ProjectName