1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpeclipse.views.browser;
12 import org.eclipse.swt.widgets.Composite;
13 import org.eclipse.ui.part.ViewPart;
15 * <code>BrowserView</code> is a simple demonstration of the SWT Browser
16 * widget. It consists of a workbench view and tab folder where each tab in the
17 * folder allows the user to interact with a control.
21 public class BrowserView extends ViewPart {
22 public final static String ID_BROWSER = "net.sourceforge.phpeclipse.views.browser";
23 PHPBrowser instance = null;
27 * @see ViewPart#createPartControl
29 public void createPartControl(Composite frame) {
30 instance = new PHPBrowser(frame);
33 * Called when we must grab focus.
35 * @see org.eclipse.ui.part.ViewPart#setFocus
37 public void setFocus() {
41 * Called when the View is to be disposed
43 public void dispose() {
48 public void setUrl(String url) {
49 instance.browser.setUrl(url);