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 Go to next message
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
Re: Content assist within strings? [message #1709193 is a reply to message #1111490] Thu, 24 September 2015 18:27 Go to previous messageGo to next message
kavitha Mising name is currently offline kavitha Mising nameFriend
Messages: 9
Registered: March 2011
Junior Member

Is this issue resolved??

Re: Content assist within strings? [message #1709427 is a reply to message #1111490] Mon, 28 September 2015 11:25 Go to previous message
aurel pestell is currently offline aurel pestellFriend
Messages: 35
Registered: October 2013
Location: Sweden
[Deleted post: wrong thread, sorry]

[Updated on: Mon, 28 September 2015 11:33]

Report message to a moderator

Previous Topic:Xtext validation queries
Next Topic:restart build if build was broken
Goto Forum:

Current Time: Fri Oct 09 16:24:20 GMT 2015

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

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