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
ImplementsIWorkbenchBrowserSupport
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:
- 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 IWebBrowser
getExternalBrowser()
Returns a shared instance of the external web browser.boolean
isInternalWebBrowserAvailable()
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:IWorkbenchBrowserSupport
Returns 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:
getExternalBrowser
in 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:IWorkbenchBrowserSupport
Tests whether web browser as an SWT widget can be created in this workbench instance. If this method returnsfalse
,createBrowser
would ignore browser stylesAS_EDITOR
andAS_VIEW
and always create an external browser.- Specified by:
isInternalWebBrowserAvailable
in interfaceIWorkbenchBrowserSupport
- Returns:
true
if internal web browser can be created on this platform,false
otherwise.
-
-