Logo

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/

User Contributed Notes

rafatals3ode (10 March 2012, 11:20 am)

what about the steps for windows XP?

tudor (21 September 2011, 12:37 am)

Thanks mcleod. I fixed it.

mcleod (19 September 2011, 10:40 am)

para 2; You can achieve for any model this by ...

---> You can achieve this for any model by...

tudor (18 May 2011, 2:26 pm)

Thanks. I integrated the comment.

rjohnson (18 May 2011, 11:10 am)

It should be "do not typically contain" instead of "do not contain typically". Even better would be "models rarely 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 the source."

Add a Note