| /******************************************************************************* |
| * Copyright (c) 2005 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.ui.browser; |
| |
| import org.eclipse.ui.PartInitException; |
| |
| /** |
| * Implements <code>IWorkbenchBrowserSupport</code> while leaving some methods |
| * to the implementors. Classes that extend this abstract class are meant to be |
| * contributed via 'org.eclipse.ui.browserSupport' extension point. |
| * |
| * @since 1.0 |
| */ |
| public abstract class AbstractWorkbenchBrowserSupport implements |
| IWorkbenchBrowserSupport { |
| |
| private static final String SHARED_EXTERNAL_BROWSER_ID = "org.eclipse.ui.externalBrowser"; //$NON-NLS-1$ |
| |
| /** |
| * The default constructor. |
| */ |
| public AbstractWorkbenchBrowserSupport() { |
| } |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.ui.browser.IWorkbenchBrowserSupport#getExternalBrowser() |
| */ |
| public IWebBrowser getExternalBrowser() throws PartInitException { |
| return createBrowser(AS_EXTERNAL, SHARED_EXTERNAL_BROWSER_ID, null, |
| null); |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.ui.browser.IWorkbenchBrowserSupport#isInternalWebBrowserAvailable() |
| */ |
| public boolean isInternalWebBrowserAvailable() { |
| return false; |
| } |
| } |