xtext Editor in Papyrus [message #635674] |
Wed, 27 October 2010 13:17  |
Eclipse User |
|
|
|
Hi ,
I wanted to ask to developers of Papyrus about xtext editors used in papyrus. These are three xtext editor plugins used to define grammer etc for properties.
org.eclipse.papyrus.property.editor.xtext
org.eclipse.papyrus.property.editor.xtext.generator
org.eclipse.papyrus.property.editor.xtext.ui
I have seen all of these three plugins but could not find how you are using it when you drag property on a class then click it and get a text area to write. it gives code completion and code highligting. I wanted to know where can I find this implementation? is it implemented in some other plugin? can any one point me to that code? it would help me alot!
Regards
/Jaguar
|
|
|
|
|
|
Re: xtext Editor in Papyrus [message #652401 is a reply to message #652281] |
Thu, 03 February 2011 13:27   |
Eclipse User |
|
|
|
Hello Julien,
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?
Best regards,
Arnaud
|
|
|
|
|
|
|
Re: xtext Editor in Papyrus [message #1385319 is a reply to message #653147] |
Thu, 05 June 2014 11:12  |
Eclipse User |
|
|
|
Hi,
Is anyone keen to provide me with updated instructions of how to include a Xtext Editor into Papyrus.
Somehow my editor does not show up under Window/Preferences/Papyrus/Embedded Editors.
Thx & Cheers
Davincho
|
|
|
Powered by
FUDForum. Page generated in 0.53013 seconds