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 Mederly
Messages: 1
Registered: September 2013
Junior Member
Hello,

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

xslt("c:\dir1\dir2\my-great-stylesh

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: Sat Oct 25 10:33:18 GMT 2014

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

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