Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Positioning cursor after proposal accept
Positioning cursor after proposal accept [message #767240] Sat, 17 December 2011 12:05 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Is it possible to some how configure where the cursor is set after a
proposal from the list has been accepted.

Let's say the proposal inserts text like this: 'test : ""' and I'd like
the cursor to be placed inbetween the "".

Tom
Re: Positioning cursor after proposal accept [message #767249 is a reply to message #767240] Sat, 17 December 2011 12:40 Go to previous message
Meinte Boersma is currently offline Meinte BoersmaFriend
Messages: 434
Registered: July 2009
Location: Leiden, Netherlands
Senior Member
Have a look at the sub classes of ICompletionProposal which are in any of the Xtext plug-ins: the most-often used one is ConfigurableCompletionProposal which has a 'cursorPosition' feature which allows you to tweak the cursor position.

Previous Topic:Duplicate Element 'xyz' - but i know its not
Next Topic:Ensure entries in ParserRule are comma separated
Goto Forum:
  


Current Time: Tue Apr 16 22:06:18 GMT 2024

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

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

Back to the top