Skip to main content



      Home
Home » Newcomers » Newcomers » can I define body content of auto generated method?
can I define body content of auto generated method? [message #171693] Wed, 20 September 2006 02:41 Go to next message
Eclipse UserFriend
Originally posted by: justfly.shi.gmail.com

the default body content is "return null", can i configurate in any where to
make the default body content to be "throw new
UnsupportedOperationException();"
Re: can I define body content of auto generated method? [message #171849 is a reply to message #171693] Wed, 20 September 2006 13:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Jiemiao Shi wrote:
> the default body content is "return null", can i configurate in any where to
> make the default body content to be "throw new
> UnsupportedOperationException();"

Open the preferences window and enter "code templates" into the filter
field at the top. That will highlight the Java code templates settings.
I think the one you want to edit is "Method body"

--
Hope this helps,
Eric
Re: can I define body content of auto generated method? [message #172093 is a reply to message #171849] Thu, 21 September 2006 22:25 Go to previous message
Eclipse UserFriend
Originally posted by: justfly.shi.gmail.com

It works, thank you very much!
"Eric Rizzo" <eclipse4@rizzoweb.com>
??????:eersk7$1j7$1@utils.eclipse.org...
> Jiemiao Shi wrote:
>> the default body content is "return null", can i configurate in any where
>> to make the default body content to be "throw new
>> UnsupportedOperationException();"
>
> Open the preferences window and enter "code templates" into the filter
> field at the top. That will highlight the Java code templates settings. I
> think the one you want to edit is "Method body"
>
> --
> Hope this helps,
> Eric
>
Previous Topic:How to compile and build eclipe
Next Topic:Eclipse's compatibility policy
Goto Forum:
  


Current Time: Tue Jul 15 20:46:56 EDT 2025

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

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

Back to the top