Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Java Code Assist Templates - Doc Bug?
Java Code Assist Templates - Doc Bug? [message #249048] Thu, 25 October 2007 13:34 Go to next message
Eclipse UserFriend
The Help for Code Assist Templates is missing a crucial piece
of information -- the fact that the template variable "${}" is used
to create an input field in the template. I spent 30 minutes looking
for the template variable to do this:

public static final String ${s:newName(String)} = "${}";${cursor}

and was ready to give up and post a query here, when it occurred to
me to try ${}, not really expecting it to work. ${} should be listed
in the table of template variables.

Should I file a Doc bug?
Re: Java Code Assist Templates - Doc Bug? [message #249058 is a reply to message #249048] Fri, 26 October 2007 05:34 Go to previous message
Eclipse UserFriend
Jim Garrison wrote:

> The Help for Code Assist Templates is missing a crucial piece
> of information -- the fact that the template variable "${}" is used
> to create an input field in the template.

Besides the predefined variables you can use any string inside the {}
including the empty string and hence it doesn't belong into the content
assist popup. We could enhance the help though. Please file a bug, best
with a suggestion.

Dani

> I spent 30 minutes looking
> for the template variable to do this:
>
> public static final String ${s:newName(String)} = "${}";${cursor}
>
> and was ready to give up and post a query here, when it occurred to
> me to try ${}, not really expecting it to work. ${} should be listed
> in the table of template variables.
>
> Should I file a Doc bug?
>
Previous Topic:Convenience format the code of a entire folder
Next Topic:Insert code after a comment with ListRewrite
Goto Forum:
  


Current Time: Sat Jun 07 19:26:48 EDT 2025

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

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

Back to the top