intial source from http://www.sf.net/projects/wdte
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / webbrowser / ExtendedBrowser.java
1 /**
2  * Copyright (c) 2004 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
7  *
8  * Contributors:
9  *    IBM - Initial API and implementation
10  */
11 package net.sourceforge.phpeclipse.webbrowser;
12
13 import net.sourceforge.phpeclipse.webbrowser.internal.WebBrowser;
14
15 import org.eclipse.swt.browser.Browser;
16 import org.eclipse.swt.widgets.Composite;
17 /**
18  * Web browser widget. Extends the eclipse Browser widget by adding an
19  * optional toolbar and statusbar.
20  */
21 public class ExtendedBrowser extends WebBrowser {
22         public ExtendedBrowser(Composite parent, final boolean showToolbar, final boolean showStatusbar) {
23                 super(parent, showToolbar, showStatusbar);
24         }
25
26         /**
27          * Return the underlying browser control.
28          * 
29          * @return org.eclipse.swt.browser.Browser
30          */
31         public Browser getBrowser() {
32                 return browser;
33         }
34
35         public void home() {
36                 super.home();
37         }
38
39         public void setURL(String url) {
40                 super.setURL(url);
41         }
42 }