RCP Browser Basic setup instructionsAdded by IBM on October 5, 2011 | Version 1 (Original)
|To run the sample, you must import the sample into your workspace, configure it, and then start the sample.
To run the sample, you must import the sample into your workspace, configure it, and then start the sample.
Follow these steps:
- To import the sample:
- Select File > Import.
- From the Import Wizard, select General and then select Existing Projects into Workspace. Click Next.
- Select the Archive file radio button.
- Enter the name of the sample jar file, rcpbrowserbasic.jar, or browse to the com.ibm.rcp.tools.samplegallery2 plug-in directory and select the jar file from the archive directory.
- The dialog shows the projects present in the archive jar file. Select Finish to install the projects into your workspace.
- To configure and run the sample:
- Select Run > Run Configurations... from the main menu.
- Select Client Services and click New.
- Type a unique name for your configuration, such as RCP Browser Basic Sample.
- Select the Plug-ins tab and verify that the com.ibm.rcp.samples.browser.rcp.basic plug-in is selected.
- Select the Arguments tab and verify that –console is in the Program Arguments field.
- Click Apply and then Run.
- Once Expeditor is launched, complete the Login panel if it appears
This sample contributes an item to the application launcher:
Parent topic: RCP Browser Basic
- Select Open > Browser Samples > RCP Browser Basic Sample.
A perspective will open containing three views – a Browser Control View, and two views containing browsers (using the WebBrowser control objects).
The top portion of the Browser Control View provides for configuration options to control browser and view behaviors. The Browser Controls tab shows the known browsers (those opened specifically by this sample), and provides an input field to set the URL or Location for the selected browser. Other controls enable back and forward navigation based on browser history, stopping of page loading, and refresh of current page.
The Advanced Controls tab provides controls for Open browser window behavior, Close browser window behavior, as well as URL filters used by event handlers.
The Proxy Settings tab permits configuration of proxy settings specific to this browser instance.
Note: Proxies can also be configured at the Lotus® Expeditor platform level.
Calling setProxy on a specific browser instance overrides any platform settings for that browser instance.
The bottom portion of the Browser Control View shows an Activity Console. The various listeners attached to the WebBrowser controls will add lines to this console indicating the events received.
Use the controls provided to perform navigation of the browsers, and see events being fired in the console. By exploring the code provided in this sample, you can see how the various user interface controls link to methods provided WebBrowser control, or to events created by the WebBrowser control.