Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Auto-selection of text at proposal?
icon4.gif  Auto-selection of text at proposal? [message #1312039] Thu, 24 April 2014 04:22 Go to next message
Thomas Rudmik is currently offline Thomas RudmikFriend
Messages: 2
Registered: April 2014
Junior Member
Hello,
I'm working on the content assist or a DSL.
Is there any possibility to select or markup a part from the proposalstring to edit it after selecting the proposal, like we know it from java, when you auto-complete a method for example?
The java editor selects automatically the parameter names.
Is this possible in xtext for my proposal?
Re: Auto-selection of text at proposal? [message #1312721 is a reply to message #1312039] Thu, 24 April 2014 13:06 Go to previous messageGo to next message
Holger Schill is currently offline Holger SchillFriend
Messages: 75
Registered: July 2009
Member
That's a template proposal.

Please consult http://www.eclipse.org/Xtext/documentation.html and there
the section Template Proposals.



On 24.04.14 14:50, Thomas Rudmik wrote:
> Hello,
> I'm working on the content assist or a DSL.
> Is there any possibility to select or markup a part from the
> proposalstring to edit it after selecting the proposal, like we know it
> from java, when you auto-complete a method for example?
> The java editor selects automatically the parameter names.
> Is this possible in xtext for my proposal?


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: Auto-selection of text at proposal? [message #1348593 is a reply to message #1312721] Sun, 11 May 2014 23:03 Go to previous message
Thomas Rudmik is currently offline Thomas RudmikFriend
Messages: 2
Registered: April 2014
Junior Member
Thanks, but that's not exactly, what I'm looking for.
I would like to do this in my sourcecode, like I do it with the normal proposals, which I have to add finally to the acceptor with the accept method.
Previous Topic:Override "names are unique" check for a specific type of object
Next Topic:"Couldn't resolve reference" problem with programmatically created object
Goto Forum:
  


Current Time: Thu Apr 25 11:08:19 GMT 2024

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

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

Back to the top