Step 10.7: Import the Inquire application


Step 10.7: Import the Inquire application

click to expand

q 10.7(a) Insert the CD-ROM included with this book into your CD-ROM drive.

q 10.7(b) Right click on the SWT project and select Import . . .

click to expand
Figure 10.38: Use the popup menu in the Package Explorer to Import a file into the SWT project.

At this point, you have many options as to your import source. Since your source is in a folder on the CD-ROM disk, you'll use the File System option.

q 10.7(c) Select File System and click Next.

click to expand
Figure 10.39: Select File System as the source for the import.

You need to specify the location of the files. Use the dropdown list for the "From directory" field to reselect the Step 10 folder. (If you don't see Step 10 in the dropdown, simply enter R :\Source\Step 10, where R is the letter of the CD-ROM drive where you loaded the disk, into the "From directory:" field and press the Tab key). Remember from Step 7 that on my machine the CD is loaded in the D: drive, so I enter D in place of R.

q 10.7(d) Use the dropdown list to reselect the Step 10 folder.

click to expand
Figure 10.40: Enter R ”\Source\Step 10, where R is the drive where you loaded the included CD-ROM.

Select the Step 10 folder by clicking on it.

q 10.7(e) Left-click on the Step 10 folder.

click to expand
Figure 10.41: Select the Step 10 folder by left-clicking on it.

This will cause the contents of the Step 10 folder to appear in the right-hand pane as shown in Figure 10.42.

click to expand
Figure 10.42: The contents of the Source folder will appear in the right hand pane.

Select Inquire.java by clicking on its checkbox.

q 10.7(f) Select Inquire.java and click Finish.

click to expand
Figure 10.43: Select only Inquire.java, then click Finish.

Your display should look just like the one shown in Figure 10.44. Double-click on Inquire.java to open it.

click to expand
Figure 10.44: The workbench display after importing Inquire.java, but before opening it.

q 10.7(g) Open Inquire.java by double-clicking on it.

click to expand
Figure 10.45: The workbench display after opening Inquire.java.



Eclipse
Eclipse: Step by Step (Step-by-Step series)
ISBN: 1583470441
EAN: 2147483647
Year: 2003
Pages: 90
Authors: Joe Pluta

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net