The Standard Widget Toolkit includes a web browser, called the SWT Browser Widget. Eclipse uses the
Widget to view HTML documents as if a web browser were requesting them. The Widget's rendering engine
is dependent on your operating system - KHTML for Mac OS X, Gecko for Linux, and MSHTML for Windows.
Every time you save a file in the Editor, the Browser widget will make a request for the edited page
from the local web server.
To activate the Browser Widget preview, you'll need to specify your local web server's DocumentRoot
and localhost address in the Eclipse Preferences. Go to Window -> Preferences -> PHPEclipse
Web Developer -> Project Defaults. You'll also need to make sure the project is in the DocumentRoot
directory. If you didn't specify the default workspace to the DocumentRoot, you can override project
locations by right clicking on each project and selecting Properties.
Quantum Database Browser
With the Quantum DB Perspective, you can interface with a database directly from Eclipse. In
the SQL Editor, you can write SQL statements against a database and have the result set appear in the
Quantum Table View. You can also browse the schema of a database in the Database Bookmarks and
Quantum Table Views.
The Quantum Perspective acts as a client to a database using a JDBC connection. Your database must
have a JDBC driver installed. For MySQL, the official MySQL Connector/J driver is available at http://dev.mysql.com/downloads/connector/j/3.0.html.
Once you have this installed, you need to create a bookmark for each database by right-clicking in the Database
Bookmarks View. Eclipse will prompt you for the location of the driver and all the database settings.
Vaya Con Dios
Hopefully, this article will get you up and running with Eclipse and PHPEclipse, and convince you
that this is the right PHP development platform for you. This is just a very brief introduction to
Eclipse's functionality. There are many other features, settings, and plugins to explore. As you
discover more functionality, odds are that you'll find Eclipse even more useful. With widespread industry
support, an extensible architecture, and an open source license, Eclipse is an important player in freedom
of software choice and makes your PHP development easier.