Results 1 to 3 of 3
Thread: Renaming a class
- 12-03-2007, 12:19 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 70
- Rep Power
- 0
Renaming a class
I have a class in Eclipse. It has few constructor and objects of this class are being created in other classes. I now want to rename this class. How can I rename it in Eclipse so all its references are also changed accordingly.
Java Code:public class Test { public Test(){ ... } public Test(int a){ ... } public Test(float a){ ... } }
- 12-06-2007, 09:44 PM #2
Member
- Join Date
- Dec 2007
- Location
- So Cal
- Posts
- 4
- Rep Power
- 0
I'm not sure if there is a way to change all references that easiy. If it is a public class, you will need to rename the java file (eclipse will automaticly rename the class file to match), and just use the Find/Replace to change all the references.
- 12-06-2007, 11:29 PM #3
Senior Member
- Join Date
- Nov 2007
- Location
- Newport, WA
- Posts
- 141
- Rep Power
- 0
Similar Threads
-
Renaming underlying directory in Java project
By Rodrigo Braz in forum EclipseReplies: 3Last Post: 03-08-2009, 07:25 AM -
what is the Priority for execution of Interface class and a Abstract class
By Santoshbk in forum Advanced JavaReplies: 0Last Post: 04-02-2008, 07:04 AM -
Renaming a method/variable
By gapper in forum EclipseReplies: 0Last Post: 01-31-2008, 01:29 PM -
Accessing one class from another class through swing
By kbyrne in forum AWT / SwingReplies: 5Last Post: 01-03-2008, 07:54 AM -
Renaming a class in Eclipse
By Java Tip in forum Java TipReplies: 0Last Post: 12-04-2007, 10:54 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks