Skip to content

Commit

Permalink
Merge pull request #582 from vitruv-tools/fix-virtualmodelbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWerm authored Apr 20, 2023
2 parents 5d1ed7e + 99c2dfe commit 2a9c647
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import tools.vitruv.framework.views.ViewTypeRepository
import tools.vitruv.framework.vsum.helper.VsumFileSystemLayout
import tools.vitruv.framework.vsum.internal.InternalVirtualModel
import tools.vitruv.framework.vsum.internal.VirtualModelImpl
import tools.vitruv.change.propagation.ProjectMarker

import static com.google.common.base.Preconditions.checkState

Expand Down Expand Up @@ -96,6 +97,11 @@ class VirtualModelBuilder {
fileSystemLayout.prepare()
val vsum = new VirtualModelImpl(fileSystemLayout, userInteractor, viewTypeRepository, changeSpecificationRepository)
vsum.loadExistingModels()
try {
ProjectMarker.getProjectRootFolder(storageFolder)
} catch (IllegalStateException exception) {
ProjectMarker.markAsProjectRootFolder(storageFolder)
}
return vsum
}
}

0 comments on commit 2a9c647

Please sign in to comment.