Fragment Example

Introduction

This example demonstrates model fragment functionality.

Installation

To install this example, open the examples wizard: File -> New -> Example. Then select Fragment Example under the RMP (DevOps Modeling Platform) Plug-ins -> UML Modeler Plug-ins category.

Fragment Example Wizard

Description

The example, once installed, provides an action under the Sample menu item called Model Fragment Example.

Fragment Example Action

When the action is invoked, it creates a model, adds a package, adds a class to the package, fragments both the package and model, then absorbs the package fragment.

The example Java code FragmentExample.java also demonstrates the use of various fragment-related APIs.

Usage

Refer to the source code of this example if you need to fragment a model or manipulate model fragments programmatically.


Legal notices