Package org.eclipse.ui.browser
Class AbstractWorkbenchBrowserSupport
- java.lang.Object
-
- org.eclipse.ui.browser.AbstractWorkbenchBrowserSupport
-
- All Implemented Interfaces:
IWorkbenchBrowserSupport
public abstract class AbstractWorkbenchBrowserSupport extends Object implements IWorkbenchBrowserSupport
ImplementsIWorkbenchBrowserSupportwhile 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:
- 3.1
-
-
Field Summary
-
Fields inherited from interface org.eclipse.ui.browser.IWorkbenchBrowserSupport
AS_EDITOR, AS_EXTERNAL, AS_VIEW, LOCATION_BAR, NAVIGATION_BAR, PERSISTENT, STATUS
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkbenchBrowserSupport()The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IWebBrowsergetExternalBrowser()Returns a shared instance of the external web browser.booleanisInternalWebBrowserAvailable()Tests whether web browser as an SWT widget can be created in this workbench instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.ui.browser.IWorkbenchBrowserSupport
createBrowser, createBrowser
-
-
-
-
Method Detail
-
getExternalBrowser
public IWebBrowser getExternalBrowser() throws PartInitException
Description copied from interface:IWorkbenchBrowserSupportReturns a shared instance of the external web browser. Clients can use it to share one external browser. The external browser that will be used is subject to browser support implementation. A suggested implementation is to use the operating system's default browser. Implementations that offer users a choice of the web browser should honour the users choice of external browser, with the initial selection being the system default browser.- Specified by:
getExternalBrowserin interfaceIWorkbenchBrowserSupport- Returns:
- the shared instance of the external browser
- Throws:
PartInitException- if the operation failed for some reason
-
isInternalWebBrowserAvailable
public boolean isInternalWebBrowserAvailable()
Description copied from interface:IWorkbenchBrowserSupportTests whether web browser as an SWT widget can be created in this workbench instance. If this method returnsfalse,createBrowserwould ignore browser stylesAS_EDITORandAS_VIEWand always create an external browser.- Specified by:
isInternalWebBrowserAvailablein interfaceIWorkbenchBrowserSupport- Returns:
trueif internal web browser can be created on this platform,falseotherwise.
-
-