package org.eclipse.webbrowser.internal; import org.eclipse.webbrowser.IInternalWebBrowser; import org.eclipse.webbrowser.IInternalWebBrowserWorkingCopy; /** * */ public class InternalWebBrowserWorkingCopy extends InternalWebBrowser implements IInternalWebBrowserWorkingCopy { protected InternalWebBrowser browser; // working copy public InternalWebBrowserWorkingCopy(InternalWebBrowser browser) { this.browser = browser; setInternal(browser); } public void setUseNewPage(boolean b) { useNewPage = b; } public void setClearHistoryOnExit(boolean b) { clearHistory = b; } public boolean isWorkingCopy() { return true; } public IInternalWebBrowserWorkingCopy getWorkingCopy() { return this; } /* (non-Javadoc) * @see org.eclipse.webbrowser.IExternalWebBrowserWorkingCopy#save() */ public IInternalWebBrowser save() { if (browser != null) { browser.setInternal(this); BrowserManager.getInstance().browserChanged(browser); } return browser; } }