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?
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?
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."
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." :?
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.