Getting Started with Eclipse Juno
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Learn subjects ranging from basic Java development to web app development, version control, and GUI programming
  • Discover how to use Eclipse to develop, test, and debug basic desktop Java applications proficiently
  • Integrate JUnit 4, the most widely used unit testing framework, into Eclipse
  • Get to grips with how Eclipse can be used to develop web-based Java applications that employ Java Servlets and JavaServer Pages

Book Details

Language : English
Paperback : 256 pages [ 235mm x 191mm ]
Release Date : July 2013
ISBN : 1782160949
ISBN 13 : 9781782160946
Author(s) : Rodrigo Fraxino Araujo, Vinicius H. S. Durelli, Rafael M. Teixeira
Topics and Technologies : All Books, Application Development, Open Source

Table of Contents

Preface
Chapter 1: Introduction
Chapter 2: Java Development
Chapter 3: Unit Testing with JUnit and Debugging
Chapter 4: Version Control Systems
Chapter 5: SWT
Chapter 6: More SWT
Chapter 7: Web Development Using Eclipse WTP
Chapter 8: Eclipse Development
Chapter 9: Eclipse Rich Client Platform
Appendix: Keyboard Shortcuts
Index
  • Chapter 1: Introduction
    • How to use this book
    • Downloading and installing Eclipse
    • Eclipse Juno – new and noteworthy
    • Summary
    • Chapter 2: Java Development
      • Creating a Java project
        • Creating a Java class
        • Creating working sets
      • Importing a Java project
        • Importing a project from Version Control Servers
      • Introducing Java views
        • The Package Explorer view
        • The Java Editor view
          • Compiling errors and warnings annotations
          • Content assist
          • Code navigation
          • Quick fix
          • Customizing the editor
        • The Problems view
          • Customizing the Problems view
        • The Outline view
        • The Type Hierarchy view
        • The Call Hierarchy view
        • Organizing imports
        • Save actions
        • Enforcing Coding Style with Formatter
      • Generating code
        • Generating getters and setters
        • Generating constructors
        • Generating the hashCode() and equals() methods
        • Generating the toString() method
        • Generating method comments
        • Editing code and comment templates
      • Refactoring
        • Renaming variables
        • Modifying a method's signature
      • Building and running the project
        • Creating a launch configuration
      • Managing the project build path
      • Summary
      • Chapter 3: Unit Testing with JUnit and Debugging
        • Testing with JUnit – getting started
          • Setting up JUnit
          • Testing with JUnit
          • Implementing the test methods generated by Eclipse
          • An overview of the Eclipse JUnit Runner view
          • Creating test cases
        • Debugging when problems arise
        • Summary
          • Chapter 5: SWT
            • Getting started
              • Setting up
              • Widgets
              • Displays
            • Controls
              • The Label widgets
              • The Text widgets
              • The Button widgets
              • The List widgets
              • The Combo widgets
            • Layouts
              • FillLayout
              • RowLayout
              • GridLayout
            • New and noteworthy
            • Summary
            • Chapter 6: More SWT
              • Events
              • Typed and untyped events
                • KeyEvent
                • MouseEvent
              • Menus
              • Toolbars
              • Tables
              • Dialogs
                • MessageBox
                • FileDialog
                • ColorDialog
                • FontDialog
                • PrintDialog
              • Summary
              • Chapter 7: Web Development Using Eclipse WTP
                • Brief introduction to the benefits of Java web application technologies
                • Understanding servlets
                • Understanding JavaServer Page
                • Getting started with Apache Tomcat
                • Installing Tomcat
                • Eclipse Web Tools Platform
                  • Configuring the server
                • The servlet lifecycle
                • Implementing your very first Java servlet using Eclipse WTP
                  • A more elaborate example – yet another calculator
                  • Deploying the calculator example
                • Implementing your very first JSP using Eclipse WTP
                • Generating WAR files
                • Summary
                • Chapter 8: Eclipse Development
                  • Creating your first plugin
                  • Running and debugging a plugin project
                    • Running and debugging configurations
                  • Extension points
                    • Declaring an extension point
                      • Providing interfaces
                    • Using extension points implementation in code
                    • Implementing an extension point
                  • Contributing to the platform's menus and toolbars
                    • Actions versus commands
                      • org.eclipse.ui.menus
                      • org.eclipse.ui.commands
                      • org.eclipse.ui.handlers
                      • Restricting and disabling contributions
                      • The Plugin Spy feature
                    • Creating new views
                      • Saving the view's current state
                      • Adding context help to your view
                      • Example of a new view
                  • Exporting a plugin
                  • Summary
                  • Chapter 9: Eclipse Rich Client Platform
                    • Understanding a Rich Client Platform
                    • The Eclipse Rich Client Platform
                      • OSGi framework implementation
                        • The module layer
                        • The life cycle layer
                        • The service layer
                        • The security layer
                      • SWT
                      • JFace
                      • Eclipse workbench
                    • Developing a client application using the Eclipse RCP
                      • Creating a new client application project using a template
                        • A closer look at the generated source code
                    • Running and debugging RCP applications
                    • Expanding the example – creating a contact list application
                      • The contact list view
                      • The contact editor
                      • The Save and New commands and menu entries
                      • Tying up the two views
                      • Running the application
                    • Packaging and branding an Eclipse RCP application
                      • Branding an Eclipse RCP application
                    • Summary
                    • Appendix: Keyboard Shortcuts
                      • File editor shortcuts
                        • Code edition shortcuts
                        • Code generation and code refactoring shortcuts
                        • Code navigation shortcuts
                        • Java shortcuts
                      • File shortcuts
                      • Run and debug shortcuts
                      • Views shortcuts

                      Rodrigo Fraxino Araujo

                      Rodrigo Fraxino Araujo is a Ph.D. candidate in Computer Science at the University of São Paulo, Brazil. He has spent a year as a visiting scholar at the Institut National de Recherche en Informatique et Automatique, Rocquencourt, France. He is also a software engineer and since 2011, is working at IBM.

                      Vinicius H. S. Durelli

                      Vinicius H. S. Durelli is a Ph.D. candidate in Computer Science at the University of São Paulo, Brazil. As part of his doctoral studies, from 2011 to 2012, he was a visiting scholar at the George Mason University, Virginia, USA. He received his M.S. in Computer Science from the Federal University of São Carlos in 2008. He has been a Sun Certified Java Programmer since 2006. Also, he has been using Eclipse since circa 2004, which makes him feel old. When he is not writing or programming, Vinicius enjoys playing video games (especially Mario and Zelda games) and practicing Brazilian Jiu Jitsu.

                      Rafael M. Teixeira

                      Rafael M. Teixeira currently works as a Software Engineer at IBM Linux Technology Center, developing code for Eclipse open source projects. He's currently taking a MSc program in University of São Paulo, where he also received his Computer Engineering degree. Rafael's favorite hobby is running, but also enjoys some occasional video gaming.

                      Code Downloads

                      Download the code and support files for this book.


                      Submit Errata

                      Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                      Errata

                      - 6 submitted: last submission 23 Jul 2014

                      Errata type: Typo | Page number: 17

                      After enabling this option, go to the Navigate menu end select Go To | Matching Bracket ( Ctrl + Shift + P ), now this option works everywhere in the Java files.

                      Should be

                      After enabling this option, go to the Navigate menu and select Go To | Matching Bracket ( Ctrl + Shift + P ), now this option works everywhere in the Java files.

                      Errata Type: Technical | page Number: 52

                      The project name in the "Source folder" field is given as "Chapter_3_Basic_Calculator/src"

                      It should be:
                      The project name in the "Source folder" field should be "BasicCalculatorProject/src"

                      Errata Type: Technical | Page Number: 63

                      It states: "For instance, we can use this annotation to implement an edge
                      case of our testDivision() method as in the following code."

                      It should be: "For instance, we can use this annotation to implement an
                      edge case of our testDivide() method as in the following code."

                      Errata Type: technical | Page Number: 74

                      It is given as:

                      This operation can be performed by navigating to  File  | New | CVS | CVS Repository Location

                       

                      This should be:

                      File | New | Other (a window called "Select a wizard" will be opened), then select CVS and then select CVS Repository Location)

                      Errata Type: Technical | Page Number: 76

                      It says:
                      "It is also possible to use the wizard by navigating to File | New | CVS |Projects from CVS. You can select the repository location and from the second page, you can choose the list of projects with which you wish to work."

                      It should be:
                      It is also possible to use the wizard by navigating to File | New | Project | CVS | Projects from CVS
                      or
                      File | New | Other| CVS | Projects from CVS

                       

                      Errata Type: Technical | Page Number: 49

                      It is given as:

                      So, inside Eclipse navigate to File  | New | Java Project

                       

                      This should be:

                      So, inside Eclipse navigate to File  | New | Project. Then choose Java Project.

                      Sample chapters

                      You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                      Frequently bought together

                      Getting Started with Eclipse Juno +    MDX with SSAS 2012 Cookbook =
                      50% Off
                      the second eBook
                      Price for both: £29.05

                      Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                      What you will learn from this book

                      • What Eclipse is and why you should make the jump to an IDE if you have not done it yet
                      • Effectively using Eclipse to write Java code
                      • Integrate JUnit 4 into Eclipse, and develop and run JUnit-based test methods
                      • Manage your project using the version control system Git/EGit
                      • Develop GUI applications using SWT
                      • Use the Eclipse WTP plugin to develop and deploy web-based Java applications
                      • Extend Eclipse by developing new Editors, Views, and contributing to existing elements of the IDE

                      In Detail

                      Integrated Development Environments (IDEs) such as Eclipse are examples of tools that help developers by automating an assortment of software development-related tasks. By reading this book you will learn how to get Eclipse to automate common development tasks, which will give you a boost of productivity.

                      Getting Started with Eclipse Juno is targeted at any Java programmer interested in taking advantage of the benefits provided by a full-fledged IDE. This book will get the reader up to speed with Eclipse’s powerful features to write, refactor, test, debug, and deploy Java applications.

                      This book covers all you need to know to get up to speed in Eclipse Juno IDE. It is mainly tailored for Java beginners that want to make the jump from their text editors to a powerful IDE. However, seasoned Java developers not familiar with Eclipse will also find the hands-on tutorials in this book useful.

                      The book starts off by showing how to perform the most basic activities related to implementing Java applications (creating and organizing Java projects, refactoring, and setting launch configurations), working up to more sophisticated topics as testing, web development, and GUI programming.

                      This book covers managing a project using a version control system, testing and debugging an application, the concepts of advanced GUI programming, developing plugins and rich client applications, along with web development.

                      Approach

                       Written as a concise yet practical guide that details the main features which are usually required by a programmer who makes use of the Eclipse platform, this book covers Eclipse 3.8 in a way that is accessible to the Java novice and expert alike. The reader is guided through a series of hands-on examples that introduce Eclipse and some of its plugins.

                      Who this book is for

                      The primary audience for this book are the Java programmers. This book has been written in a way that it is accessible both to beginners and advanced Java programmers alike. Also, if you are a seasoned Java developer who has been using another IDE and wondering what Eclipse brings to the table, this book will provide you with a hands-on walkthrough of the main IDE features. This book will also be beneficial to any computer science undergraduate or a graduate student who are familiar with Java.

                      Code Download and Errata
                      Packt Anytime, Anywhere
                      Register Books
                      Print Upgrades
                      eBook Downloads
                      Video Support
                      Contact Us
                      Awards Voting Nominations Previous Winners
                      Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                      Resources
                      Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software