| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <title>Moving and copying Java elements</title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1>Moving and copying Tcl elements</h1> |
| <p> In this section, you will use refactoring to move and copy resources between Tcl packages.; |
| </p> |
| <ol> |
| <li>Create a new project as shown in the first section of this tutorial.</li> |
| <li><p>Open the Script explorer view and right click the project icon. |
| Then select <b>New > Tcl package</b> context menu item.</p> |
| <p><img src="./images/tcl-new-pack.png" alt="New package" border="0"> </p> |
| </li> |
| <li> |
| <p>Type a package name in the dialog and press <b>Finish</b>.</p> |
| <p><img src="./images/tcl-new-pack-2.png" alt="New package" border="0"> </p> |
| <p>A new package has been created in the current project.</p> |
| <p><img src="./images/tcl-new-pack-3.png" alt="New package" border="0"> </p> |
| </li> |
| <li> |
| <p>Create a new Tcl file in the project as shown in the first section of this tutorial.</p> |
| <p><img src="./images/tcl-file-cp.png" alt="New package" border="0"> </p> |
| </li> |
| <li> |
| <p> Now drag the file and drop it into the new package. Then click <b>OK</b> in the Move dialog. |
| The file will be moved. |
| Note that you may copy a file if you drag and drop it while keeping Ctrl pressed. |
| </p> |
| <p><img src="./images/tcl-file-mv-2.png" alt="New package" border="0"> </p> |
| </li> |
| </ol> |
| <p>You can also move a file between packages using the context menu. |
| To use it just right click the file and select <b>Refactor > Move</b>. |
| Then choose the destination package in the dialog and press <b>OK</b>. |
| </p> |
| <p><img src="./images/tcl-file-mv.png" alt="New package" border="0"> </p> |
| |
| <P class="nav_footer" id="nav_footer">Next Section: <A href="qs-Navigate.htm">Navigate to a Tcl element's declaration</A> |
| </P> |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0"> |
| <p> <a href="../concepts/cjavaviews.htm">Tcl views</a><br> |
| |
| </body> |
| </html> |
| |