Last updated May 21, 2004
This is an example of a simple Eclipse Rich Client Platform (RCP) application. It is a bare bones web browser, using the SWT Browser control.
The code is in package org.eclipse.ui.examples.browser
, and consists
of an application class (BrowserApp
), a workbench advisor for
configuring the workbench (BrowserAdvisor
), and a single perspective
(BrowserPerspectiveFactory
) containing a single view (BrowserView
).
The application defines several built-in actions in the menu and toolbar that are
typical for web browsers (Back, Forward, Stop, Refresh). These are added in
BrowserActionBuilder
when a new window is opened (see
BrowserAdvisor.fillActionBars(...)
). These actions are defined as
retargetable actions, for which the view registers handling actions.
The view consists of an address bar (a Label
and a Text
control) and the Browser
control. To handle status and progress
events, it simply passes on the relevant events from the Browser
control to the Workbench status line.