Book a Demo

Author Topic: How to move an existing package in the hierarchy?  (Read 2996 times)

pstein

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
How to move an existing package in the hierarchy?
« on: March 14, 2008, 05:12:38 am »
I have an existing empty package called "Model" in the Project Browser.

Now I want to import a XMI file which should be on the same hierarchy level as "Model".
How can I achieve this?

When "Model" is marked (and at least one package must be marked)
then the imported XML Schema is inserted BELOW (=inside) "Model".
But it should be placed outside of "Model" on the top (=root) package level.

Alternatively I thought I could import it in a first step inside the "Model" package
and the move it to the root level but this is working neither.
Moving (up and down) seems to be possible only on the same hiererachy level in Project Browser.

Is there a way to perform a hierarchy move of existing Models (packages) to different levels?  

Peter

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to move an existing package in the hierarc
« Reply #1 on: March 14, 2008, 08:17:14 am »
Hi Peter,

First, let me make sure you are clear on what import will do for you.

When you import you have two options: you can import a complete package tree, or you can import a complete model. So, if you have only the (default) model root in your project, the latter course is the most likely one for you.

If you select and right-click a model root node in the Project Browser, the context menu will allow to import a model, overwriting the one you selected.

If you select and right-click a (non-root) package, the context menu will allow you to import at that level.

So far so good.

As far as importing a second model, complete with a root node that is a  'sibling' of the one you have now, that should be easy.

First, create another root node. Right-click the current root node, and from the context menu choose New Model (Root Node). This will give you another root node. Now select that node and right-click again. Do a model import from XMI. You should now replace the new root node with your imported model.

David
No, you can't have it!