1
edit
Changes
no edit summary
=== 7. Moving and copying Java elements ===
7.1. To '''Move''' a class to another package: <br/>
Click on ''Refactor -> Move'' <br/>
[[Image:move1.jpg |600px]]
<br/>57.24. In the To '''Copy'New Java Class'' window, write down your a class to another package:<br/>Right Click on the class namein the ''Package Explorer'', e.g."VehicleRegistration" and check the then select ''public static void main(String[] args)Copy''. Press Finish to close the window., <br />[[Image:newclass2copy1.jpg |500px 600px]]
<br/>7.5.3Then right click on the destination package and select ''Paste''. The package name in the copied class would be the same as the destination package name. <br />[[Image:copy2.jpg |500px ]] <br/>7.6. The following code will be the content of the copied ''VehicleRegistration'' class in ''cs.ecl.basics.lab'' Note the packagename.<br />[[Image:newclass3copy3.jpg |600px ]]