Skip to main content


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 15:03 Go to next message
Andy  is currently offline Andy Friend
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 16:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
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?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: renaming a Class member [message #689970 is a reply to message #689961] Tue, 28 June 2011 16:56 Go to previous messageGo to next message
Andy  is currently offline Andy Friend
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 18:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
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." :?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: renaming a Class member [message #690048 is a reply to message #690010] Tue, 28 June 2011 21:28 Go to previous message
Andy  is currently offline Andy Friend
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: Tue Apr 23 16:30:37 GMT 2024

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

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

Back to the top