Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » setting arguments for function(is there still no easy solution?)
setting arguments for function [message #729474] Mon, 26 September 2011 09:31 Go to next message
Phil R is currently offline Phil RFriend
Messages: 99
Registered: September 2011
Member
Hi all,

I'm trying to define my predicate with the option for users to enter the arguments by tabbing through it. After searching a while I found that it is not recommended to define this in the "myDSLProposalProvider" java class because then tabbing through the arguments is not possible. Another option was to create a template proposal but then I got other problems. The definition:
http://i834.photobucket.com/albums/zz270/fortuda/argsforPred.jpg
the name doesn't work of course, yet I would like to have in the dropdown box the names of the available predicates. (-> working this out lead me to the content assist, but I'm trying to avoid it because others on this forum tried it before and got stuck)
Another problem is that the arguments are not dynamically (always the same amount of arguments...)

My question is if anyone succeeded this feature and would like to share it?

Best Regards,
Phil
Re: setting arguments for function [message #729563 is a reply to message #729474] Mon, 26 September 2011 14:08 Go to previous messageGo to next message
Phil R is currently offline Phil RFriend
Messages: 99
Registered: September 2011
Member
I continued by using Content assist, (I dunno how to fix it with template proposals only)

I got the following working:
http://i834.photobucket.com/albums/zz270/fortuda/proposal.jpg

The problem that still occurs is the tabbing through the arguments.
It is done most of the time with templates I'll try fixing it by using custom template-classes, or is this not possible? see: http://blogs.itemis.de/stundzig/archives/750
Re: setting arguments for function [message #729684 is a reply to message #729474] Mon, 26 September 2011 18:44 Go to previous message
Phil R is currently offline Phil RFriend
Messages: 99
Registered: September 2011
Member
After whole day breaking my head about it, I got it Smile !
Pressing CTRL+SPACE shows a dropdown box with a list of predicates, selecting a predicate (e.g. Neighbour) gives me a template proposal for the arguments where you can tab through:
http://i834.photobucket.com/albums/zz270/fortuda/prop_working.jpg

Regards,
Phil

[Updated on: Tue, 27 September 2011 14:08]

Report message to a moderator

Previous Topic:Xtend2 with Maven
Next Topic:Search results and DefaultDescriptionLabelProvider
Goto Forum:
  


Current Time: Fri Apr 26 11:41:36 GMT 2024

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

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

Back to the top