Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » renaming a Class member(How to refactor)
icon5.gif  renaming a Class member [message #689898] Tue, 28 June 2011 11:03 Go to next message
Andy  is currently offline Andy
Messages: 16
Registered: May 2011
Junior Member
I want to rename a Class member name using the Refactor -> Rename option so Eclipse will take care of the getters and setters for me. When I choose that option from the Outline pane I get the message "The resource is not on the buildpath of the Java Project". What do I need to add to make this work?
Re: renaming a Class member [message #689961 is a reply to message #689898] Tue, 28 June 2011 12:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25931
Registered: July 2009
Senior Member
Andy,

Check the Java properties of your Java project to find out what's the
source folder. Make sure all your *.java files are nested under that
folder (with appropriate intermediate folders to match the qualified
package name).


On 28/06/2011 8:03 AM, Andy wrote:
> I want to rename a Class member name using the Refactor -> Rename
> option so Eclipse will take care of the getters and setters for me.
> When I choose that option from the Outline pane I get the message "The
> resource is not on the buildpath of the Java Project". What do I need
> to add to make this work?
Re: renaming a Class member [message #689970 is a reply to message #689961] Tue, 28 June 2011 12:56 Go to previous messageGo to next message
Andy  is currently offline Andy
Messages: 16
Registered: May 2011
Junior Member
If you are referring to the Properties:JavaBuildPath, when I try to add my source directory with the "Add Folder" button I get the error "File /PPR_TV/.classpath is read-only." Confused
Re: renaming a Class member [message #690010 is a reply to message #689970] Tue, 28 June 2011 14:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25931
Registered: July 2009
Senior Member
Is it read only? You can turn off filtering of .* files to see it in
the Navigator...


On 28/06/2011 9:56 AM, Andy wrote:
> If you are referring to the Properties:JavaBuildPath, when I try to
> add my source directory with the "Add Folder" button I get the error
> "File /PPR_TV/.classpath is read-only." :?
Re: renaming a Class member [message #690048 is a reply to message #690010] Tue, 28 June 2011 17:28 Go to previous message
Andy  is currently offline Andy
Messages: 16
Registered: May 2011
Junior Member
It's working now. I don't know why. Also my Project explorer is now showing me Classes and members. Before it was just showing a java file. Thanks for your replies. Cool
Previous Topic:Problem create and open project eclipse on Readynas duo with Mac
Next Topic:eclipse exit after running a while
Goto Forum:
  


Current Time: Mon Jul 28 16:30:04 EDT 2014

Powered by FUDForum. Page generated in 0.02428 seconds