1 package org.eclipse.webbrowser.internal;
3 import org.eclipse.webbrowser.IExternalWebBrowser;
4 import org.eclipse.webbrowser.IExternalWebBrowserWorkingCopy;
8 public class ExternalWebBrowserWorkingCopy extends ExternalWebBrowser implements IExternalWebBrowserWorkingCopy {
9 protected ExternalWebBrowser browser;
12 public ExternalWebBrowserWorkingCopy() { }
15 public ExternalWebBrowserWorkingCopy(ExternalWebBrowser browser) {
16 this.browser = browser;
21 * @see org.eclipse.webbrowser.IExternalWebBrowserWorkingCopy#setName(java.lang.String)
23 public void setName(String name) {
28 * @see org.eclipse.webbrowser.IExternalWebBrowserWorkingCopy#setLocation(java.lang.String)
30 public void setLocation(String location) {
31 this.location = location;
35 * @see org.eclipse.webbrowser.IExternalWebBrowserWorkingCopy#setParameters(java.lang.String)
37 public void setParameters(String params) {
38 this.parameters = params;
41 public boolean isWorkingCopy() {
45 public IExternalWebBrowserWorkingCopy getWorkingCopy() {
50 * @see org.eclipse.webbrowser.IExternalWebBrowserWorkingCopy#save()
52 public IExternalWebBrowser save() {
53 if (browser != null) {
54 browser.setInternal(this);
55 BrowserManager.getInstance().browserChanged(browser);
57 browser = new ExternalWebBrowser();
58 browser.setInternal(this);
59 BrowserManager.getInstance().addBrowser(browser);