This book demonstrates how you can develop Java applications, how you can debug them and how to write JUnit tests for your applications. It also explains how you can work with local Mylyn tasks to organize your work efficiently.
It also includes important Eclipse configuration tips which make programming with Eclipse more effective.
After finishing this book you should feel comfortable with using the Eclipse IDE for standard Java development tasks and you should be equipped to explore Eclipse further.
How this book is organizedThe first chapter gives a short introduction what Eclipse is and how to install and start it.
The second chapter introduces the main user interface components of Eclipse and explains the usage of the JavaPerspective, the "Package Explorer" View and the "Problems" View.
The third chapter guides you through creating a new Java project in Eclipse. It also shows you how to run the Java programs inside and outside Eclipse.
In the fourth chapter we will look at some of the help Eclipse provides to write code. You learn how to use Quickfix and Content Assists in the Java editor to work more efficiently. You will also see some of the code generation capabilities of Eclipse.
Java libraries are distributed as .jar files. The fifth chapter introduces the usage of Java libraries and explains how to use them in a Java project. It also demonstrates how to add the source attachment and JavaDoc attachment to a library.
The sixth chapter explains how to use the Eclipse update manager and the "dropins" folder to add new functionality to your Eclipse installation.
The seventh chapter highlights useful settings in the Eclipse preferences which should help you to configure Eclipse to your needs. It also demonstrates how to use Working Sets to organize your code.
Using the Java debugger is part of the eighth chapter. You learn how to inspect variables and how to step through your code.
In the ninth chapter you will learn how to write JUnit tests to test your software components and how to execute them inside and outside Eclipse.
The tenth chapter is dedicated to local task management. The Mylyn software component helps the developer to deal with multiple tasks and highlights the relevant files for a given task.
The final chapter lists helpful web resources, which should help you in your journey to learn the Eclipse IDE and the Eclipse framework.
The appendix lists useful Eclipse shortcuts which should make any Eclipse programmer more efficient in using the Eclipse IDE.
Distributed Version Control with Git gives a practical introduction into the Git version control system. The focus of this book lies in practising the usage of the Git command line for typical Git tasks. How this book is organized
The first chapter will explain what Git is and also introduce some key concepts of Git. Afterwards a typical Git workflow will be explained and demonstrated so that the reader can follow.
The third chapter explains how to branch using Git and how to handle merge conflicts. You will also learn how to rewrite your commit history via the rebase command.
The fourth chapter explains other important tasks that can be done using Git but are not necessary tasks you would do in a typical workflow, e.g. defining your own Git commands. The next chapter will explain how to access online Git repositories and get pointers how to use Github or Bitbucket as a hosting platform.
The final chapter will give pointers which graphical user interfaces for Git are available.
This book demonstrates how you can develop Android applications using the integrated SQLite database. It also demonstrates how to use and create ContentProvider for accessing data. ContentProviders are Java classes which allow to share data between applications. They also provide a structured interface to access data.
The book assumes that you are already familiar with the Android Development Tools for Eclipse and with creating simple Android applications. The tutorials of this book have been developed and tested with Android 4.0.3, API Level 15.
How this book is organizedThe first chapter gives an introduction into SQLite and using SQlite on Android.
The second chapter introduces the main SQLite classes and how to use them. It also gives examples how to create and run queries to your database.
The third chapter contains a tutorial in which you create a new Android project which uses SQLite to store its data. In the tutorial you will use a wrapper class (data access object) which handles the access to the database.
In the fourth chapter we look at ContentProviders. It explains what a ContentProvider is, how you can access existing ones and how to define your own one. In this chapter you also learn how to define a ContentProviders only visible to your application and learn about threading safety with ContentProvider.
The next chapter is a tutorial which shows how to access an existing ContentProvider. You create an Android application which access the data from the “People” application .
The sixth chapter explains the Loader API which was introduced in Android 3.0. Loader loads the data asynchronously. Activities should use this new API to manage their database connection (Cursor).
The seventh chapter is a tutorial in which you create an application to manage your tasks. You create your own ContentProvider for accessing the SQLite database and use the Loader API for accessing and managing the database Cursor.
Accessing the SQLite database directly on the command line is part of the eighth chapter.