Difference between revisions of "Team1/Renaming Java elements"
Line 1: | Line 1: | ||
+ | === 6. Renaming Java elements === | ||
− | + | 6.1. While the particular class is selected, click on ''Refactor -> Rename''<br/> | |
+ | [[Image:rename1.jpg |600px]] | ||
− | + | <br/>6.2. In the ''Rename Compilation Unit'' window, write down the new name for the class, e.g.''VehicleRegistration'' and check the Update references" then click on Next .<br /> | |
− | [[Image: | + | [[Image:rename2.jpg |500px ]] |
− | <br/> | + | <br/>6.3. The following code will be the content of the ''VehicleRegistration'' class in ''cs.ecl.basics.lab'' package.<br /> |
− | + | [[Image:rename3.jpg |600px ]] | |
− | |||
− | |||
− | [[Image: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 11:05, 30 January 2011
6. Renaming Java elements
6.1. While the particular class is selected, click on Refactor -> Rename
6.2. In the Rename Compilation Unit window, write down the new name for the class, e.g.VehicleRegistration and check the Update references" then click on Next .
6.3. The following code will be the content of the VehicleRegistration class in cs.ecl.basics.lab package.