Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Content assist within strings?
Content assist within strings? [message #1111490] Wed, 18 September 2013 09:40
Pavol Mederly is currently offline Pavol MederlyFriend
Messages: 1
Registered: September 2013
Junior Member

please, what's the best way to implement content assist that works within strings?

Specifically, I want to implement the auto-completion of file names that are represented by strings in my DSL.

Example: when user starts typing


and after last "h" he wants to press Ctrl+Space to find all files that begin with c:\dir1\dir2\my-great-stylesh.

Currently, after pressing Ctrl+Space only the warning bell rings and nothing happens.

According to the documentation, I've tried to implement both:

override completeFileSpecification_Url(...), and
override complete_STRING(...)

but these only work when user presses Ctrl+Space on position before first quote (or when the whole string is selected). It is quite a bit of nuissance for the user.

How to enable content assist to work on semi-finished strings, using the current caret position?

Thank you very much in advance.

Pavol Mederly
Previous Topic:ValueConverter class is not getting called during runtime
Next Topic:Error message in xtext editor
Goto Forum:

Current Time: Tue Sep 01 20:28:14 GMT 2015

Powered by FUDForum. Page generated in 0.01500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software