Open main menu

CDOT Wiki β

Changes

Team1/Renaming Java elements

55 bytes added, 12:19, 30 January 2011
no edit summary
'''=== 6. Renaming Java elements '''<br/>Go to the "src" folder in your package and right click on it, then select: New -> Class[[Image:eclLab1_4.jpg|500px ]]===
6.1. While the particular class is selected, click on ''Refactor -> Rename''<br/>In the "New Java Class" window, write down your class name, e.g."Lab" and check the "public static void main(String[] args)"[[Image:eclLab1_5rename1.jpg|400px ]]
<br/>The following code will be 6.2. In the ''Rename Compilation Unit'' window, write down the content of new name for the Lab1_1 class, e.g.''VehicleRegistration'' and check the Update references" then click on Next .<br /> [[Image:eclLab1_7rename2.jpg|500px ]] <br/>The following code will 6.3. In the new window, the changes to be performed are displayed. <br />[[Image:rename3.jpg |500px ]] <br/>6.4. Note the new class name in the content of the Lab1_1 class..<br />[[Image:eclLab1_8rename4.jpg|500px ]]
1
edit