Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » quick-fix created methods' modifier
quick-fix created methods' modifier [message #872494] Wed, 16 May 2012 08:16 Go to next message
Diana Mising name is currently offline Diana Mising nameFriend
Messages: 34
Registered: July 2009
Member
Whenever I create a new method using quick-fix, the new method is always private. I would like to change the default modifier for these automatically generated methods to protected. Is there any possibility to do that?

Thanks

[Updated on: Wed, 16 May 2012 08:50]

Report message to a moderator

Re: quick-fix created methods' modifier [message #872525 is a reply to message #872494] Wed, 16 May 2012 09:12 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 5/16/2012 1:46 PM, Diana Mising name wrote:
>
> Whenever I create a new method using quick-fix, the new method is always
> private. I would like to change the default modifier for these
> automatically generated methods to protected. Is there any possibility
> to do that?

Do you see a rectangular gray box around 'private' (and a few more
words) immediately after using the quick fix?

Use the 'TAB' key to navigate to different boxes. When you navigate to
'private' Eclipse should offer you all modifiers - protected, public -
which you can select using arrow keys and enter key.

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
Previous Topic:step filtering - set packages to go into
Next Topic:Android app Question
Goto Forum:
  


Current Time: Fri Apr 19 20:34:35 GMT 2024

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

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

Back to the top