Context panel
The Context panel shows what the current selection is connected to: an element’s relationships and owner, a diagram’s contents, or a metamodel type’s place in its metamodel. Every name in it is a link, so you can walk the model one step at a time.
Default position: the left column, below the Explorer. Show or hide it with View > Context or Ctrl+Shift+T (Cmd+Shift+T on a Mac).
In the panel
Section titled “In the panel”The panel has no toolbar. At the top is a header naming the selection; for an element, its metamodel and type follow in brackets, and each is a link. What is below depends on what you have selected.
- A model element — Owned by and Owns, if it has an owner or owned elements, then one group per relationship type and direction. Each group shows a preview of the line, the type’s verb (or its name), how many, and an arrow for outgoing or incoming. Under it are the elements at the other end.
- A relationship — its Source and Target.
- A diagram — the Elements and Relationships on it, including ones you have added but not yet saved.
- An element type — in blue, marked M2:
- Relationships — every relationship type the element type can take part in, grouped by verb and direction, with the types at the other end. A rule inherited from a supertype is tagged via that supertype. Relationship types that connect any element are listed on one line at the end.
- Instances — the model elements of this type.
- A relationship type — Constraints, each allowed pair on one line as source verb target, or a note that it is unconstrained; then its Instances.
- A property type — Has a value: the elements that have a value for it, which lose it if the property type is deleted.
- Something in MOF Core — Classified Elements: the metamodel definitions of that kind.
Selecting a catalog or board shows nothing here. With nothing selected, the panel says so.
What you can do:
- Click a name to select it. The Explorer, Properties and the rest follow, and this panel moves on to it.
- Click a verb in an element type’s Relationships to select that relationship type.
- Click a group’s chevron (or the rest of its header) to open or close it.
- Drag a model element or relationship from the list onto a diagram to add it there, as you would from the Explorer. Metamodel types are not draggable.
The panel only reads the model, so it is the same for every role.
How to…
Section titled “How to…”- Connect elements with relationships
- Add elements to a diagram
- Create a relationship type
- Define owned element types
- Use the M2 lifecycle