Moving methods within a class [message #58082] |
Wed, 27 April 2005 10:58 |
Eclipse User |
|
|
|
Originally posted by: barnaby.dalton.brevanhoward.com
I'd like to rearrange some methods within a class so that all the public
methods are at the top.
Is there a way of moving methods within a class by dragging them in the
package explorer view or is cut/paste the preferred technique?
Thanks
Barney
|
|
|
Re: Moving methods within a class [message #58155 is a reply to message #58082] |
Wed, 27 April 2005 13:20 |
Eclipse User |
|
|
|
Originally posted by: hcs33.egon.gyaloglo.hu
Hi,
There is an option in Source menu called Sort Members. It can be sort
members of a class in the order specified in Preferences > Java > Appearance
> Member sort order. You can use visibility to determine order within a
category. This may help.
HTH,
Regards,
Csaba
Barney wrote:
> I'd like to rearrange some methods within a class so that all the public
> methods are at the top.
> Is there a way of moving methods within a class by dragging them in the
> package explorer view or is cut/paste the preferred technique?
>
> Thanks
> Barney
|
|
|
Powered by
FUDForum. Page generated in 0.10999 seconds