List of Figures


Step 1: Welcome to Eclipse!

Figure 1.1: Putting toothpaste on the toothbrush.

Step 2: Installing Eclipse

Figure 2.1: Start WinZip from the Windows Start menu.
Figure 2.2: Open a file using the Open button.
Figure 2.3: Select your CD-ROM drive.
Figure 2.4: Open the Software folder by double-clicking.
Figure 2.5: Open the Eclipse folder by double-clicking.
Figure 2.6: Open the SDK ZIP file, eclipse-SDK-2.1-win32.zip, by double-clicking.
Figure 2.7: The WinZip display shown when you open the downloaded SDK ZIP file.
Figure 2.8: Click the Extract button to begin installing the SDK files.
Figure 2.9: The WinZip extraction dialog.
Figure 2.10: The WinZip extraction status display.
Figure 2.11: Close WinZip by using the X button.
Figure 2.12: The Eclipse folder, indicating the launch icon for the IDE.
Figure 2.13: Use the pop-up menu to create a shortcut for the IDE icon.
Figure 2.14: The Eclipse folder, indicating the launch icon for the IDE.
Figure 2.15: This window is shown only the first time you launch Eclipse.
Figure 2.16: The startup screen for the Eclipse IDE.
Figure 2.17: Success! The Eclipse IDE in its default configuration!

Step 3: Introducing the Workbench

Figure 3.1: The Eclipse IDE Workbench, with its individual components broken out.
Figure 3.2: The Welcome Page for Eclipse.
Figure 3.3: Select Close All Perspectives from the Window menu.
Figure 3.4: A completely empty workbench.
Figure 3.5: Opening the Resource persepective.
Figure 3.6: An empty Resource perspective.
Figure 3.7: Select Welcome. . from the Help menu.
Figure 3.8: The Welcome wizard.
Figure 3.9: The Welcome Page for the Eclipse Platform.
Figure 3.10: The bottom of the Welcome Page for the Eclipse Platform.
Figure 3.11: Use the hyperlink to bring up the User Guide.
Figure 3.12: The Eclipse User Guide.

Step 4: The Resource Perspective

Figure 4.1: This is the same picture as in Figure 3.1.
Figure 4.2: Close the Welcome panel by clicking on the X.
Figure 4.3: The empty workbench with no Welcome panel.
Figure 4.4: Right-click in the Navigator pane.
Figure 4.5: Select the New submenu, then the Project... option.
Figure 4.6: The New Project wizard is a typical wizard.
Figure 4.7: Select the options to create a "Simple" project.
Figure 4.8: Type in the project name ("Simple Project") and press the Finish button.
Figure 4.9: Congratulations! You have created a project named Simple Project.
Figure 4.10: Clicking on the plus sign will expand the project.
Figure 4.11: The magically generated project file.
Figure 4.12: Double-click on the .project file to open it in an editor.
Figure 4.13: The project file turns out to be an XML diocument.
Figure 4.14: For Simple Project, select New/File ...
Figure 4.15: The New File wizard, which prompts you for the name of the new file.
Figure 4.16: The workbench shows the new file, as well as an editor for it.
Figure 4.17: The source entered into Step List.txt.
Figure 4.18: Save the contents of the file with the popup menu.
Figure 4.19: The updated workbench, with the Navigator view showing the new file.
Figure 4.20: Right-clicking anywhere in the Navigator pane allows you to select the New submenu. Then select the Folder... option to bring up the wizard.
Figure 4.21: The New Folder wizard.
Figure 4.22: The Steps folder has been created.
Figure 4.23: Dragging the Steps List.txt file and dropping it into the Steps folder.
Figure 4.24: The Steps folder is no longer empty.
Figure 4.25: It has the Step List.txt file in it!
Figure 4.26: First, select the Step List.txt file, but hold down the cursor button.
Figure 4.27: Then start dragging the cursor downward.
Figure 4.28: When you hit a border, the cursor changes to a docking cursor (a heavy arrow).
Figure 4.29: After successfully docking the Step List.txt editor, you now have a split panel.
Figure 4.30: Getting ready to rejoin the panes: first, drag the project editor.
Figure 4.31: Drop the project tab on the Step List.txt editor.
Figure 4.32: And they're together again!

Step 5: The Java Perspective

Figure 5.1: Clicking Collapse All collapses all projects and folders.
Figure 5.2: Close the Step List.txt document by clicking on the X.
Figure 5.3: Close the .project resource by clicking on the X.
Figure 5.4: Bring up the New Project wizard by right-clicking on the Navigator.
Figure 5.5: Select Java and Java Project and click Next .
Figure 5.6: Finish the wizard by entering the name and clicking Finish.
Figure 5.7: Make sure "Do not show this message again" is checked, then click Yes.
Figure 5.8: Click on the plus sign to expand the Hello project.
Figure 5.9: The Hello project is nearly empty, but not quite A JAR file has been added by default.
Figure 5.10: Rolling your mouse pointer over the JAR file shows its full name in a tool tip.
Figure 5.11: Click on the minus sign to collapse the Hello project.
Figure 5.12: Use the perspective bar to change to the Resource perspective.
Figure 5.13: Left-click on the plus sign to expand the Hello project.
Figure 5.14: Double-click on the .project file in project Hello to open it.
Figure 5.15: The contents of the .project file for Hello.
Figure 5.16: Left-click on the plus sign to expand Simple Project.
Figure 5.17: Double-click on the .project file in Simple Project.
Figure 5.18: Dock Hello's .project file by dragging and dropping it on the left edge of the pane.
Figure 5.19: The two .project files side by side.
Figure 5.20: Close the .project file by clicking on the X.
Figure 5.21: Double-click on the .classpath file to open it.
Figure 5.22: Double-click on the .classpath tab in the editor to maximize it.
Figure 5.23: The .classpath editor pane maximized.
Figure 5.24: Restore the .classpath editor pane by double-clicking on it.
Figure 5.25: Close the .classpath editor pane.
Figure 5.26: Close the .project editor pane.
Figure 5.27: Switch to the Java perspective.
Figure 5.28: The workbench in Java perspective.
Figure 5.29: Left-click on the Source option on the menu bar to see the Source menu.
Figure 5.30: Left-click on the Refactor option to see the Refactor menu.
Figure 5.31: The Debug tool.
Figure 5.32: The Run tool.
Figure 5.33: The New Java Project tool.
Figure 5.34: The New Java Package tool.
Figure 5.35: The New Scrapbook Page tool.
Figure 5.36: The New Java Class tool.
Figure 5.37: The Open Type tool.
Figure 5.38: The tabs at the bottom of a pane allow you to switch between stacked views.
Figure 5.39: Click on the tab to switch to the corresponding view, in this case, the Hierarchy tab.
Figure 5.40: The Hierarchy view, currently empty.
Figure 5.41: Click on the Package Explorer tab to return to the Package Explorer view.
Figure 5.42: And here you are on the Package Explorer, ready for Step 6.

Step 6: The Debug Perspective

Figure 6.1: Select the Window option on the main menu bar.
Figure 6.2: Select Open Perspective/Debug to switch to the debug perspective.
Figure 6.3: The Debug perspective, although it's pretty empty because nothing is running.
Figure 6.4: The Resume tool button.
Figure 6.5: The Step with Filters tool button.
Figure 6.6: Select Window/Close Perspective to close the current perspective.
Figure 6.7: And now you're back to the Java perspective.

Step 7: A Simple Program

Figure 7.1: The Java Perspective, as indicated by the title bar.
Figure 7.2: A possible alternative view of the IDE; in this case, the Resource perspective.
Figure 7.3: Select Window/Open Perspective/Java from the main menu bar.
Figure 7.4: The Java perspective showing the Hello project.
Figure 7.5: Bringing up the New Project wizard by right-clicking on the Navigator pane and selecting New/Project...
Figure 7.6: Select Java and Java Project on the left and right, and click Next.
Figure 7.7: Finish the wizard by entering the name and clicking Finish.
Figure 7.8: Creating a new class using New/Class.
Figure 7.9: Setting the fields properly for a new class.
Figure 7.10: The result of the addition of the new class HelloWorld.
Figure 7.11: Source code entered into the editor pane.
Figure 7.12: Right-click in the editor pane and select Save to save the code.
Figure 7.13: Use the popup menu in the Package Explorer to import a file into the Hello project.
Figure 7.14: Select File system as the source for the import.
Figure 7.15: Enter R\Source\Step 7, where R is the drive where you loaded the included CD-ROM.
Figure 7.16: Select the Step 7 folder by left-clicking on it.
Figure 7.17: The contents of the Step 7 folder will appear in the right hand pane.
Figure 7.18: Select only Hello World.Java, then click Finish.
Figure 7.19: This prompt is used to be sure you really want to overwrite your source.
Figure 7.20: The workbench display after importing source code from the included CD-ROM.
Figure 7.21: Left-click on HelloWorld.java to expand it.
Figure 7.22: The expanded HelloWorld shows the source, the class, and the method.

Step 8: Running and Debugging

Figure 8.1: Using the Run tool's dropdown, select the Run .. option.
Figure 8.2: Use the configuration wizard to create a new Java Application configuration.
Figure 8.3: Leave the defaults (Project = Hello and Main class = HelloWorld) and press Run.
Figure 8.4: The results of your application show up in the console window.
Figure 8.5: Copying the program using the popup menu.
Figure 8.6: Getting ready to paste the source back into the default package.
Figure 8.7: Change the name to resolve the conflict.
Figure 8.8: After copying the file, the old file is open, but the new file is not.
Figure 8.9: To open the new file, simply right-click on it and select Open (or double-click the file).
Figure 8.10: HelloWorld2 is now open in the editor, along with HelloWorld.
Figure 8.11: Modify the code to use a counter.
Figure 8.12: Saving the source using the editor's popup menu.
Figure 8.13: Import into the Hello project.
Figure 8.14: Import from a File system.
Figure 8.15: Using the directory dropdown.
Figure 8.16: Select the Step 7 folder by left-clicking on it.
Figure 8.17: Click on the checkbox next to HelloWorld2.java to select it.
Figure 8.18: Click Finish to import the file.
Figure 8.19: Overwrite the existing source.
Figure 8.20: Open HelloWorld2.java with the popup menu.
Figure 8.21: The imported source code.
Figure 8.22: Use the Java Application option of the Run As submenu to quickly run HelloWorld2 with the default settings.
Figure 8.23: The Console view is a little cramped, so double-click on the title bar to expand it.
Figure 8.24: The Console view maximized. Double-clicking on the title bar again will restore the display.
Figure 8.25: The display restored.
Figure 8.26: Click on the gray column next to your for loop and select Add Breakpoint.
Figure 8.27: The Debug tool will default to the last thing you ran, which in this case is HelloWorld2.
Figure 8.28: The many views of the Debug perspective.
Figure 8.29: The Debug view.
Figure 8.30: The Variables view.
Figure 8.31: Double-click on the count variable to modify it.
Figure 8.32: The Set Variable dialog.
Figure 8.33: Updating the value.
Figure 8.34: The workbench, showing that count has changed to 5.
Figure 8.35: The Resume tool of the Debug view will resume execution from the current point.
Figure 8.36: The modified execution of the program, showing the two additional lines of output.
Figure 8.37: Closing the Debug perspective using the Perspective Bar.
Figure 8.38: Back to the Java perspective.

Step 9: The User Interface

Figure 9.1: Close HelloWorld2.java.
Figure 9.2: Close HelloWorld.java.
Figure 9.3: Clear the console with the eraser icon.
Figure 9.4: The workbench, all cleaned up and ready to go.
Figure 9.5: Adding a new project using the File menu, New submenu, Project... option.
Figure 9.6: Adding a new Java Project.
Figure 9.7: Enter the project name, SWT, and select the Finish button.
Figure 9.8: The new SWT project!
Figure 9.9: Use the plus sign to expand the SWT project.
Figure 9.10: Rolling your cursor over the JAR file shows that it is the same runtime file as in the Hello project.
Figure 9.11: Creating a new class using New/Class.
Figure 9.12: Setting the fields properly for a new class.
Figure 9.13: The result of the addition of the new class HelloSWT.
Figure 9.14: Source code entered into the editor pane.
Figure 9.15: Using the scrollbar to position the window to the top of the source.
Figure 9.16: Using the Save tool to save the source.
Figure 9.17: The workbench after saving the new HelloSWT source.
Figure 9.18: Select File/Import ... to Import a file into the SWT project.
Figure 9.19: Select File system as the source for the import.
Figure 9.20: Enter R:\Source\Step 9, where R is the drive where you loaded the included CD-ROM.
Figure 9.21: Select the Step 9 folder by left-clicking on it.
Figure 9.22: The contents of the Step 9 folder will appear in the right hand pane.
Figure 9.23: Select only HelloSWT.java, then click Finish.
Figure 9.24: This prompt confirms that you really want to overwrite your source.
Figure 9.25: The workbench display after importing the source code. Note the red X's in the Package Explorer.
Figure 9.26: The Java editor with several errors.
Figure 9.27: Collapse the Hello project by left-clicking the minus sign.
Figure 9.28: A slightly less cluttered Package Explorer.
Figure 9.29: Rolling your cursor over the error icon shows the entire error description in a popup.
Figure 9.30: Using the popup menu to access the Properties dialog for the SWT project.
Figure 9.31: Select Java Build Path by left-clicking on it.
Figure 9.32: Select the Libraries tab by left-clicking on it.
Figure 9.33: To add a JAR file that is not in your workspace, press Add External JARs ...
Figure 9.34: Open the plugins folder by double-clicking on it or selecting it and pressing Enter.
Figure 9.35: Open the org.eclipse.swt.win32_2.1.0 folder.
Figure 9.36: Open the ws folder.
Figure 9.37: Open the win32 folder.
Figure 9.38: Open swt.jar to include it in the classpath.
Figure 9.39: The new JAR file is in the Libraries tab, so click OK.
Figure 9.40: The errors have been replaced with warnings.
Figure 9.41: To see the text for a warning, roll your cursor over it.
Figure 9.42: Running HelloSWT as a Java Application.
Figure 9.43: Red text is a good sign that an error occurred, but it's hard to see exactly what the error is.
Figure 9.44: Double-click on the Console view's title bar.
Figure 9.45: And here is the erroran UnsatisfiedLinkError.
Figure 9.46: Execute the Run ... option from the Run menu.
Figure 9.47: Left-click on the Arguments tab to select it.
Figure 9.48: Adding the folder that contains the native library as a JVM argument.
Figure 9.49: Here is your SWT window!
Figure 9.50: Close the window using the X.
Figure 9.51: Creating a new class using the main menu bar's New/Class option.
Figure 9.52: Setting the fields properly for a new class.
Figure 9.53: The result of the addition of the new class Prompt.
Figure 9.54: Save the source code. This figure shows the use of the Eclipse tool bar's Save tool.
Figure 9.55: The top of the source code after you press Ctrl-Home.
Figure 9.56: Use the popup menu in the Package Explorer to Import a file into the SWT project.
Figure 9.57: Select File system as the source for the import.
Figure 9.58: Enter R\Source\Step 9, where R is the drive where you loaded the CD-ROM.
Figure 9.59: Select the Step 9 folder by left-clicking on it.
Figure 9.60: The contents of the Step 9 folder will appear in the right-hand pane.
Figure 9.61: Select only Prompt.java, then click Finish.
Figure 9.62: This prompt is used to be sure you really want to overwrite your source.
Figure 9.63: Open up the source for Prompt.java by double-clicking on it.
Figure 9.64: The source for Prompt.java.
Figure 9.65: Running Prompt as a Java Application.
Figure 9.66: Red text once again indicates that you've got a problem.
Figure 9.67: Expand the error by double-clicking on the Console view's title bar.
Figure 9.68: Another UnsatisfiedLinkErrorin fact, the same one as in Step 9.6.
Figure 9.69: Restore the error to normal size by double-clicking on its title bar again.
Figure 9.70: Back to normal size for the error.
Figure 9.71: Running the application again.

Step 10: Adding the Database

Figure 10.1: The WinZip main screen.
Figure 10.2: Open the Software folder by double-clicking.
Figure 10.3: Open the HSQLDB folder by double-clicking.
Figure 10.4: Open the hsqldb_1_7_1.zip file by double-clicking.
Figure 10.5: Click the Extract button to begin the extraction process.
Figure 10.6: Select folder C\Program Files\SQL and press Extract.
Figure 10.7: The extraction status display.
Figure 10.8: Close WinZip using the X (or you could use the File/Exit menu option).
Figure 10.9: Creating a new class using the New/Class menu option.
Figure 10.10: Setting the fields properly for a new class.
Figure 10.11: The result of the addition of the new class HelloSWT.
Figure 10.12: Source code entered into the editor pane.
Figure 10.13: Using the scroll bar to position the window to the top of the source.
Figure 10.14: It's a larger source, so you'll have to scroll two or three times.
Figure 10.15: Using the Save tool to save the source.
Figure 10.16: The workbench after saving the new HelloHSQL source.
Figure 10.17: Use the popup menu in the Package Explorer to Import a file into the SWT project.
Figure 10.18: Select File System as the source for the import.
Figure 10.19: Enter R\Source\Step 10, where R is the drive where you loaded the included CD-ROM.
Figure 10.20: Select the Step 10 folder by left-clicking on it.
Figure 10.21: The contents of the Step 10 folder will appear in the right hand pane.
Figure 10.22: Select only HelloHSQL.java, then press Finish.
Figure 10.23: The workbench display after importing my source code.
Figure 10.24: The imported version of HelloHSQL (you can tell by the lack of opening comments).
Figure 10.25: Running HelloHSQL as a Java Application.
Figure 10.26: Blue text is system console outputthis is your own error routine and it shows that you're missing HSQLDB's JAR file.
Figure 10.27: Using the popup menu to access the properties dialog for the SWT project.
Figure 10.28: Click Add External JARs ...
Figure 10.29: The last folder you added a JAR file from.
Figure 10.30: Open the SQL folder where you installed HSQLDB back in Step 10.1.
Figure 10.31: Open the hsqldb folder.
Figure 10.32: Open the lib folder.
Figure 10.33: Open hsqldb.jar, which includes it in the classpath.
Figure 10.34: The new JAR file is in the Libraries tab, so press OK.
Figure 10.35: No errors.
Figure 10.36: Hitting the run tool reruns the last application, which in this case is HelloHSQL.
Figure 10.37: Output from the HelloHSQL class.
Figure 10.38: Use the popup menu in the Package Explorer to Import a file into the SWT project.
Figure 10.39: Select File System as the source for the import.
Figure 10.40: Enter R\Source\Step 10, where R is the drive where you loaded the included CD-ROM.
Figure 10.41: Select the Step 10 folder by left-clicking on it.
Figure 10.42: The contents of the Source folder will appear in the right hand pane.
Figure 10.43: Select only Inquire.java, then click Finish.
Figure 10.44: The workbench display after importing Inquire.java, but before opening it.
Figure 10.45: The workbench display after opening Inquire.java.
Figure 10.46: Running Inquire as a Java Application.

SideStep 1: Install a Java Runtime

Figure S1.1: Sun's Java home page, java.sun.com.
Figure S1.2: Downloading the JRE only for the Windows version.
Figure S1.3: Sun's License Agreement for Java.
Figure S1.4: Accept the agreement by clicking the ACCEPT button.
Figure S1.5: Click on the link to start the download.
Figure S1.6: Click the Open buttonthe installer will then be run as soon as it is downloaded.
Figure S1.7: The download status dialog.
Figure S1.8: The file extraction dialog.
Figure S1.9: The InstallShield startup dialog.
Figure S1.10: Accept the license agreement by clicking Yes.
Figure S1.11: Make sure 'typical' is selected and press Next.
Figure S1.12: The installation status dialog.
Figure S1.13: And you are done.

SideStep 2: Install WinZip

Figure S2.1: Select Download Evaluating Version from the WinZip home page, www.winzip.com.
Figure S2.2: Downloading from CNET.
Figure S2.3: Clicking Open will cause the installer to run as soon as it is downloaded.
Figure S2.4: This is the download status dialog.
Figure S2.5: Click Setup to begin the installation.
Figure S2.6: Leave the defaults and click OK to install WinZip into C\Program Files.
Figure S2.7: Click OK on the registration dialog.
Figure S2.8: Click Next on the installation-complete dialog.
Figure S2.9: Click Yes to accept the license.
Figure S2.10: Click Next on this dialog (you can always view the Quick Start guide later).
Figure S2.11: Select WinZip Classic and click Next.
Figure S2.12: Run Express Setup by selecting it and pressing Next.
Figure S2.13: After the installation is complete, click Finish.
Figure S2.14: Close the hint dialog.
Figure S2.15: The WinZip display appears!

SideStep 3: Download Eclipse

Figure S3.1: The opening page for the Eclipse Web site on April 17, 2003 (just after the release of version 2.1).
Figure S3.2: The downloads page at Eclipse.org; click on the server closest to you.
Figure S3.3: The download page at the Eclipse Web site.
Figure S3.4: The version download page for Release Build 2.1 There is one page for each build version. Roll down a page using the Page Down key on your keyboard or the scroll bar.
Figure S3.5: The various platforms available for release 2.1. Select the HTTP download of the Windows version.
Figure S3.6: Downloading the ZIP file from Eclipse.org. Click on the "click here" link only if the prompt dialog in Figure S3.6 doesn't appear.
Figure S3.7: Click Save to start downloading the ZIP file from Eclipse.org.
Figure S3.8: Selecting a directory to save the ZIP file into.
Figure S3.9: The download status box for the SDK.



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

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