Preview Eclipse Tutorial (PDF Version)
Total Page:16
File Type:pdf, Size:1020Kb
i About the Tutorial Eclipse is an integrated development environment (IDE) for Java and other programming languages like C, C++, PHP, and Ruby etc. Development environment provided by Eclipse includes the Eclipse Java development tools (JDT) for Java, Eclipse CDT for C/C++, and Eclipse PDT for PHP, among others. This tutorial will teach you how to use Eclipse in your day-2-day life while developing any software project using Eclipse IDE. We will give special emphasis on Java project. Audience This tutorial has been prepared for beginners to help them understand basic functionality of Eclipse tool. After completing this tutorial, you will find yourself at a moderate level of expertise in using Eclipse IDE from where you can take yourself to next levels. Prerequisites We assume you are going to use Eclipse IDE to handle all levels of Java projects development. So it will be good if you have knowledge of software development using any programming language specially Java programming. Copyright & Disclaimer © Copyright 2015 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book can retain a copy for future reference but commercial use of this data is not allowed. Distribution or republishing any content or a part of the content of this e-book in any manner is also not allowed without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at [email protected] i Eclipse Table of Contents About the Tutorial .................................................................................................................................... i Audience .................................................................................................................................................. i Prerequisites ............................................................................................................................................ i Copyright & Disclaimer ............................................................................................................................. i Table of Contents .................................................................................................................................... ii 1. OVERVIEW ........................................................................................................................... 1 What is Eclipse? ...................................................................................................................................... 1 Licensing ................................................................................................................................................. 1 Eclipse Releases ...................................................................................................................................... 1 2. INSTALLATION ..................................................................................................................... 3 Downloading Eclipse ............................................................................................................................... 3 Installing Eclipse ...................................................................................................................................... 3 Launching Eclipse .................................................................................................................................... 4 3. EXPLORE WINDOWS ............................................................................................................ 5 Parts of an Eclipse Window ..................................................................................................................... 5 Using Multiple Windows ......................................................................................................................... 6 4. EXPLORE MENUS ................................................................................................................. 7 Typical Eclipse Menus ............................................................................................................................. 7 Brief Description of Menus ...................................................................................................................... 8 Customizing Menus ................................................................................................................................. 8 5. EXPLORE VIEWS ................................................................................................................... 9 About Views ............................................................................................................................................ 9 Organizing Views ..................................................................................................................................... 9 Moving Views.......................................................................................................................................... 9 ii Eclipse Creating View Folders ........................................................................................................................... 10 Opening a view ..................................................................................................................................... 10 6. PERSPECTIVES ................................................................................................................... 13 What is a Perspective? .......................................................................................................................... 13 Opening a Perspective ........................................................................................................................... 13 Switching between Perspectives ........................................................................................................... 13 Closing a Perspective ............................................................................................................................. 14 Customizing a Perspective ..................................................................................................................... 14 7. WORKSPACES .................................................................................................................... 16 About Eclipse Workspace ...................................................................................................................... 16 UI Elements for Managing the Workspace ............................................................................................ 16 8. CREATE JAVA PROJECT ...................................................................................................... 18 Opening the New Java Project wizard ................................................................................................... 18 Using the New Java Project wizard ........................................................................................................ 18 Viewing the Newly Created Project ....................................................................................................... 20 9. CREATE JAVA PACKAGE ..................................................................................................... 21 Opening the New Java Package wizard.................................................................................................. 21 Using the New Java Package Wizard ..................................................................................................... 21 Viewing the Newly Created Package ..................................................................................................... 22 10. CREATE JAVA CLASS ........................................................................................................... 23 Opening the New Java Class Wizard ...................................................................................................... 23 Using the New Java Class Wizard .......................................................................................................... 23 Viewing the Newly Created Java class ................................................................................................... 24 11. CREATE JAVA INTERFACE ................................................................................................... 25 Opening the New Java Interface Wizard ................................................................................................ 25 iii Eclipse Using the New Java Interface Wizard .................................................................................................... 25 Viewing the Newly Created Java Interface ............................................................................................ 26 12. CREATE XML FILE ............................................................................................................... 27 Opening the New XML File wizard ......................................................................................................... 27 Using the New XML File wizard ............................................................................................................