Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Papyrus/Papyrus Developer Guide/Papyrus Embedded Editors Documentation/Textual Editor For NamedElement"
(start the documentation for textual editor for NamedElement) |
(No difference)
|
Revision as of 08:14, 13 March 2015
Contents
Textual Editor For Named Element
//WORK IN PROGRESS
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 developped using XText. it use a custom string parser and the class NameReoslutionHelper to find named elements from their name. This string editor works for all references multiplicities.
Grammar
- in case of multivalued references, the separator between the name of the element is the comma,
- if the name contains a comma, the string typed by the user must be prefixed and suffixed by a single quote
'
Generic Behavior
- the value typed by the user are checked and the value is not committed if the named element is not found (an error message is displayed to the user)
- completion
- CTRL-SPACE opens a popup providing an helper for the completion
- if the text field is empty, the completion provides only the
null
value - if more than 15 elements are found to match the string, we display only the 15 first values + the
null
+...
to prevent the user than more values are available
- if the text field is empty, the completion provides only the
- CTRL-SPACE opens a popup providing an helper for the completion
Property View
This editor has been added to the list of available editors for the property view
- ref1 for single reference
- ref2 for multi reference
snapshot to do
NatTable Cell Editor Integration
Papyrus provide an integration of this editor for Papyrus NatTable.
- a button is displayed at the right of the text field to open a dialog. It allows to the user to edit the cell as text or selected the new value directly in the model tree with the dialog
snapshot