Saving portions of UML models as fragments

You can save portions of a model in separate files or fragments. This technique is particularly helpful when you work in a team development environment.

Before you begin

You must have at least one UML model in your workspace, and the model must contain a package, a classifier, or a diagram.

About this task

To create a model fragment:

Procedure

  1. In the Project Explorer view, right-click a package, classifier, or diagram and then click Refactor > Create Fragment.
  2. In the Save As Fragment window, specify a parent folder and file name for the new fragment and click OK.
  3. Optional: In the Create Model Fragment window, to update references to the elements in the fragment, select the check box.
  4. Optional: To view the list of updates to make, click Preview.
  5. Optional: Select the check boxes for the updates that you want to make.
  6. Click OK.

Results

The selected element is saved as a model fragment, in an EFX file, and the icon for the element in the Project Explorer view indicates that it is a fragment.
Tip: You can also create model fragments in the Model Editor view, on the Fragments page. Or, to divide the model into fragments automatically by package, right-click the model in the Project Explorer view and then click Refactor > Fragment all Sub-Packages.

Feedback