On Tue, Sep 9, 2008 at 3:47 PM, Jon Schewe <[EMAIL PROTECTED]> wrote:
> Is it possible to merge two argouml project files? I've been working
> with two project files and now realized that I want one project to
> reference objects in the other project so I need to merge them.

Unfortunately there's no good way to merge project files.  Issue 3497
addresses the need for being able to reuse models in different
contexts.  The same underlying machinery that I put in place for
Profiles will be used for this, but we don't have everything in place.

Right now your choices are:

1. Use one project as a "profile" and reference it from the other
project.  The profile project will be read-only in the context of the
other project and you won't be able to include any diagrams from it
(it's the model information from the XMI file only).

2. Merge the projects by hand.  This is tedious, but should be
possible.  You would need to:

- Unzip both projects
- Copy the .pgml files (diagrams) from one project into the other
- Edit the target .argo file to include references to the new diagrams
- Edit the target .xmi file and include the model information from the
source .xmi file (basically copy everything inside the top level
UML:Model element)
- rezip everything in the target

Before you attempt this, you should make sure that the xmi.id values
are unique for each file.  One case where they might not be is if you
created one project by cloning another.  These values are used for all
crossreferencing, so our UML library will complain bitterly if they
are duplicated and refuse to load the combined XMI file.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to