Open main menu

CDOT Wiki β

Changes

Team1/Renaming Java elements

562 bytes removed, 12:05, 30 January 2011
no edit summary
=== 6. Renaming Java elements ===
=== 6.1. Renaming Java elements ===While the particular class is selected, click on ''Refactor -> Rename''<br/>[[Image:rename1.jpg |600px]]
1<br/>6.12. Go to In the ''Rename Compilation Unit'' window, write down the "src" folder in your package and right click on itnew name for the class, then select: e.g.''New -> ClassVehicleRegistration''and check the Update references" then click on Next .<br/>[[Image:newclass1rename2.jpg |600px500px ]]
<br/>1.2. In the ''New Java Class'' window, write down your class name, e.g."VehicleRegistration" and check the ''public static void main(String[] args)''. Press Finish to close the window.<br />[[Image:newclass2.jpg |500px ]] <br/>16.3. The following code will be the content of the ''VehicleRegistration'' class in ''cs.ecl.basics.lab'' package.<br />[[Image:newclass3rename3.jpg |600px ]] '''6. Renaming Java elements '''<br/>Go to the "src" folder in your package and right click on it, then select: New -> Class<br/>[[Image:eclLab1_4.jpg|500px ]] <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_5.jpg|400px ]] <br/>The following code will be the content of the Lab1_1 class. [[Image:eclLab1_7.jpg|500px ]]<br/>The following code will be the content of the Lab1_1 class.[[Image:eclLab1_8.jpg|500px ]]
1
edit