1 package net.sourceforge.phpeclipse.webbrowser.internal;
3 import net.sourceforge.phpeclipse.webbrowser.IExternalWebBrowser;
4 import net.sourceforge.phpeclipse.webbrowser.IExternalWebBrowserWorkingCopy;
9 public class ExternalWebBrowserWorkingCopy extends ExternalWebBrowser implements
10 IExternalWebBrowserWorkingCopy {
11 protected ExternalWebBrowser browser;
14 public ExternalWebBrowserWorkingCopy() {
18 public ExternalWebBrowserWorkingCopy(ExternalWebBrowser browser) {
19 this.browser = browser;
26 * @see net.sourceforge.phpeclipse.webbrowser.IExternalWebBrowserWorkingCopy#setName(java.lang.String)
28 public void setName(String name) {
35 * @see net.sourceforge.phpeclipse.webbrowser.IExternalWebBrowserWorkingCopy#setLocation(java.lang.String)
37 public void setLocation(String location) {
38 this.location = location;
44 * @see net.sourceforge.phpeclipse.webbrowser.IExternalWebBrowserWorkingCopy#setParameters(java.lang.String)
46 public void setParameters(String params) {
47 this.parameters = params;
50 public boolean isWorkingCopy() {
54 public IExternalWebBrowserWorkingCopy getWorkingCopy() {
61 * @see net.sourceforge.phpeclipse.webbrowser.IExternalWebBrowserWorkingCopy#save()
63 public IExternalWebBrowser save() {
64 if (browser != null) {
65 browser.setInternal(this);
66 BrowserManager.getInstance().browserChanged(browser);
68 browser = new ExternalWebBrowser();
69 browser.setInternal(this);
70 BrowserManager.getInstance().addBrowser(browser);