|Re: xtext Editor in Papyrus [message #652401 is a reply to message #652281]
||Thu, 03 February 2011 18:27
| Arnaud Cuccuru
Registered: April 2010
The tutorial has been written on the basis of the following environment: Papyrus 0.7.0 + XText 1.0.1. The interface IEobjectContextUpdater has indeed been removed in more recent versions of Papyrus, and the tutorial would therefore require to be updated.
For the method "createPopupEditorHelper" to be called, you should perform a direct edit on the graphical element (e.g., in your example, once you have selected your comment in the diagram, you can press F2). Also, please note that if you want your own textual editor to be opened by pressing F2, Papyrus must be configured properly:
- Go to Window/Preferences/Papyrus/Embedded Editors from the menu
- In the window "Elements to edit", select "Comment"
- In the window "Associated editor", your editor should appear. Select it and make it your default editor for comments.
=> If you can't see "Comment" or your associated editor, there is probably a problem with the contribution to the extension point.
Could you please tell us if this works for you?
Powered by FUDForum
. Page generated in 0.02954 seconds