01: /*******************************************************************************
02: * Copyright (c) 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.browser;
11:
12: /**
13: * Clients that supply implementation of the workbench browser support should
14: * extend this class for web browser instances they manage. Clients should not
15: * implement the <code>IWebBrowser</code> interface.
16: *
17: * @since 3.1
18: */
19: public abstract class AbstractWebBrowser implements IWebBrowser {
20: private String id;
21:
22: /**
23: * The constructor that accepts the unique browser identifier.
24: *
25: * @param id
26: * the unique browser identifier
27: */
28: public AbstractWebBrowser(String id) {
29: this .id = id;
30: }
31:
32: /*
33: * (non-Javadoc)
34: *
35: * @see org.eclipse.ui.browser.IWebBrowser#getId()
36: */
37: public String getId() {
38: return id;
39: }
40:
41: /*
42: * (non-Javadoc)
43: *
44: * @see org.eclipse.ui.browser.IWebBrowser#close()
45: */
46: public boolean close() {
47: return false;
48: }
49: }
|