How to display ecore Eclass names for content assist in Xtext editor after generating artifacts ? [message #1012747] |
Fri, 22 February 2013 02:08  |
Eclipse User |
|
|
|
Aim: To provide editor for configuring a pattern rule for Fruits.ecore
DSL Rule will some thing like this "A Grade" + Apple.name
Problem: With new instance of eclipse application I created a sample project and created a file with text.fruit within this editor I need to creat my new Fruit rule
EClass name and EStructural feature as my content assist
When I do Ctrl + Space my expectations to get list as content assist
Apple
Orange
Steps taken:
1. Created an xtext plug-in with extension .fruit as my fruit.xtext as dsl.
2. Using import statement in my "fruit.xtext" file
3. import "platform:/resource/com.emf.sample/model/Fruits.ecore" as ecore
4. Within fruit.xtext content assist of ecore works
Now generate Xtext artificats and run the application should provide content assist for EClass and EStructural Feature
How to add external ecore as part of Content assist in Work Flow or Grammar of xtext editor ? Any sample examples or work around will help .
Thanks
Sri
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07451 seconds