KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.eclipse.ui.PartInitException;
14
15 /**
16  * Implements <code>IWorkbenchBrowserSupport</code> while leaving some methods
17  * to the implementors. Classes that extend this abstract class are meant to be
18  * contributed via 'org.eclipse.ui.browserSupport' extension point.
19  *
20  * @since 3.1
21  */

22 public abstract class AbstractWorkbenchBrowserSupport implements
23         IWorkbenchBrowserSupport {
24         
25     private static final String JavaDoc SHARED_EXTERNAL_BROWSER_ID = "org.eclipse.ui.externalBrowser"; //$NON-NLS-1$
26

27     /**
28      * The default constructor.
29      */

30     public AbstractWorkbenchBrowserSupport() {
31     }
32
33     /*
34      * (non-Javadoc)
35      *
36      * @see org.eclipse.ui.browser.IWorkbenchBrowserSupport#getExternalBrowser()
37      */

38     public IWebBrowser getExternalBrowser() throws PartInitException {
39         return createBrowser(AS_EXTERNAL, SHARED_EXTERNAL_BROWSER_ID, null,
40                 null);
41     }
42     
43     /* (non-Javadoc)
44      * @see org.eclipse.ui.browser.IWorkbenchBrowserSupport#isInternalWebBrowserAvailable()
45      */

46     public boolean isInternalWebBrowserAvailable() {
47         return false;
48     }
49 }
Popular Tags