Changes

Jump to: navigation, search

Team1/Renaming Java elements

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

Navigation menu