KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > browser > AbstractWebBrowser


1 /*******************************************************************************
2  * Copyright (c) 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.browser;
12
13 /**
14  * Clients that supply implementation of the workbench browser support should
15  * extend this class for web browser instances they manage. Clients should not
16  * implement the <code>IWebBrowser</code> interface.
17  *
18  * @since 3.1
19  */

20 public abstract class AbstractWebBrowser implements IWebBrowser {
21     private String JavaDoc id;
22
23     /**
24      * The constructor that accepts the unique browser identifier.
25      *
26      * @param id
27      * the unique browser identifier
28      */

29     public AbstractWebBrowser(String JavaDoc id) {
30         this.id = id;
31     }
32
33     /*
34      * (non-Javadoc)
35      *
36      * @see org.eclipse.ui.browser.IWebBrowser#getId()
37      */

38     public String JavaDoc getId() {
39         return id;
40     }
41
42     /*
43      * (non-Javadoc)
44      *
45      * @see org.eclipse.ui.browser.IWebBrowser#close()
46      */

47     public boolean close() {
48         return false;
49     }
50 }
51
Popular Tags