2.4.2 Instructions for importing
Regardless of the file type, all imports are performed in the
same way: from the main MetaEdit+ launcher with Repository |
Import or the Import toolbar button, or from the Options
Tool’s Repository page with the File in Patches button.
The normal state for importing is to have just logged in:
if you are already logged in, and have a sufficiently recent backup of the
repository, you can continue from step 3. For imports other than MXM, make sure
that no other users are logged in, and no editor or browser windows are open
during import.
| 1) | Before
importing you should take a backup of your target repository.
|
| 2) | Start
MetaEdit+ and log in to the target repository as system administrator. You must
be the only logged in user. (These restrictions do not apply to MXM
import.) |
| 3) | Open
all projects containing types (at least those types that might possibly also be
in the patch to be imported), and also those projects where you want new types
and/or instances to be created.
|
| 4) | Select a
default project: you will be prompted during import to choose a default project
for new types, and a possibly different default project for new instances.
|
| 5) | In the
main MetaEdit+ launcher select Repository | Import or press the
Import toolbar button (or select Repository | Options and press
the Repository page’s File in Patches button). A file dialog
opens, and you can select the file to be imported.
|
After the import, briefly check the
imported models and types before committing. Check especially that new types and
instances have been created in the projects where you expected them, and that
previously imported instances have been updated, rather than new
‘duplicate’ instances created (which would indicate that the name
given for the source repository when exporting this patch was not the same as
for the previous patch).
 | Note
that all your models ¾ also those that were not
imported ¾ are changed to reflect changes in the
imported types in the same way as if the changes had been made with the
metamodeling
tools. |