Self-triggered Autocomplete [message #1053469] |
Mon, 06 May 2013 03:38  |
Eclipse User |
|
|
|
Hi all,
When I write program, i want to auto generate a guid for every meta class instance automatically.
Example:I wanted
Filesystem default { quid ="sss33432"
Drive D { guid ="2243rdffgf"
File filename guid="dfdf5" ;}
quid ="sss33432" is generated automatically. Hence, i want to user dont write guid,it is generated automatically from program when user write ' Filesystem default{ ' then it must triggered from program and program must write generated guID (from java class).
is it possibble ? If possible how can i implement this feature to my DSL ?
Regards
|
|
|
|
|
|
|
|
Re: Self-triggered Autocomplete [message #1053588 is a reply to message #1053561] |
Mon, 06 May 2013 11:54  |
Eclipse User |
|
|
|
Am 06.05.13 16:24, schrieb Christian Dietrich:
> Sorry no idea
You may want to implement ISourceViewerAware which allows you to access
the source viewer in your auto edit strategy. This will in turn provide
means to set the selection, e.g. the cursor position.
Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
Powered by
FUDForum. Page generated in 0.03854 seconds