4.5 Setting the root folder
To be able to access the source text of a model imported from MSE, we first need to locate this source text. However, models do not typically contain source text representation. Instead the source is stored in external files, and Moose needs to learn the location of these files so that it can display and manipulate the source.
For example, after importing a Java system with inFusion, we get just the MSE file and we need to reconcile it with the actual sources. You can achieve this for any model by invoking from its contextual menu: Utilities/Set root folder.
Another way to achieve the reconciliation between the MSE file and the sources is to place the sources in the default root folder for the model which is a folder with the same name as the model placed under a src
folder inside the folder containing the moose.image
file. For example, for the ArgoUML running example (see Chapter 3), you should place the contents of the ArgoUML folder under the following folder:
/ moose.image moose.changes src/ ArgoUML-0-28-1/