Papyrus Banner

General Presentation

Since Papyrus 1.1.0 (Eclipse Mars), Papyrus provides a new texutal editor to edit references to UML NamedElement. This editor works only for references which are not in containment. This editor has not been developed using XText. it use a custom string parser and the class NameResolutionHelper to find named elements from their name. This string editor works for all references multiplicities.

Grammar

Generic Behavior

Usage

Example

If you have 3 Classes in your model, named Class1, Class2 and Clas,s3.

typed text completion proposal explanation
empty string , ... we look for nothing, so we provide the value and ... to ask to the user to write more text
Clas ,Class1,Class2,Clas,s3 3 classes matches the string, is always proposed
Class ,Class1,Class2 3 classes matches the string, is always proposed
'Clas , Clas,s3 the string starts with a quote and Clas,s3 contains a comma, so we propose Clas,s3; is always proposed
Clas, ,... interpreted as a list of value, the first value is Clas, and we have no information for the second one, for the completion it is an empty string

Integration

Property View

This editor has been added to the list of available editors for the property view.

Editing the Type of a Property in Property View

Editing the precondition of an Operation in Property View

Table

Papyrus provide an integration of this editor for Papyrus NatTable. This is the same editor for single and multi references. It is a textfield, with a button displayed to its right. This button allows to the user to open the dialog to choose the reference too. It allows to the user to edit the cell as text or selected the new value directly in the model tree with the dialog

Editing the Type of a Property in Table

Editing the precondition of an Operation in Table