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: import org.eclipse.ui.PartInitException;
13:
14: /**
15: * Implements <code>IWorkbenchBrowserSupport</code> while leaving some methods
16: * to the implementors. Classes that extend this abstract class are meant to be
17: * contributed via 'org.eclipse.ui.browserSupport' extension point.
18: *
19: * @since 3.1
20: */
21: public abstract class AbstractWorkbenchBrowserSupport implements
22: IWorkbenchBrowserSupport {
23:
24: private static final String SHARED_EXTERNAL_BROWSER_ID = "org.eclipse.ui.externalBrowser"; //$NON-NLS-1$
25:
26: /**
27: * The default constructor.
28: */
29: public AbstractWorkbenchBrowserSupport() {
30: }
31:
32: /*
33: * (non-Javadoc)
34: *
35: * @see org.eclipse.ui.browser.IWorkbenchBrowserSupport#getExternalBrowser()
36: */
37: public IWebBrowser getExternalBrowser() throws PartInitException {
38: return createBrowser(AS_EXTERNAL, SHARED_EXTERNAL_BROWSER_ID,
39: null, null);
40: }
41:
42: /* (non-Javadoc)
43: * @see org.eclipse.ui.browser.IWorkbenchBrowserSupport#isInternalWebBrowserAvailable()
44: */
45: public boolean isInternalWebBrowserAvailable() {
46: return false;
47: }
48: }
|