public class WebBrowserEditor extends TelesalesEditorPart
An instance of the WebBrowserEditor class could be opened as below:
UrlObject url = new UrlObject("http://www.ibm.com/"); TelesalesUrlObject input = new TelesalesUrlObject(url); IEditorPart part = TelesalesEditorFactory.openBrowserEditor(input);This class may be sub-classed.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
WebBrowserEditor() |
Modifier and Type | Method and Description |
---|---|
protected void | createBrowser(org.eclipse.swt.widgets.Composite parent)
Creates the platform browser control.
|
protected org.eclipse.swt.widgets.Control | createPageContent(org.eclipse.swt.widgets.Composite parent)
Creates the content calling createBrowser(Composite).
|
org.eclipse.swt.browser.Browser | getBrowser()
Returns the platform browser.
|
java.lang.String | getHelpContextId()
Retrieves the page's help context ID (value ITelesalesHelpContextIds.WEB_BROWSER_EDITOR_PART).
|
java.lang.String | getHelpResource()
Retrieves the URL to the help resource.
|
java.lang.String | getPartName()
Retrieves the part name or title.
|
UrlObject | getUrlObject()
Returns the URL input.
|
void | init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
Initializes the page content with the editor input.
|
void | setUrlObject(UrlObject url)
Sets the URL input.
|
protected boolean | useButtonBar()
Indicates whether to build and use the button bar.
|
public static final java.lang.String COPYRIGHT
protected void createBrowser(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Control createPageContent(org.eclipse.swt.widgets.Composite parent)
Once the browser is created, the layout is defined using GridLayout.
public org.eclipse.swt.browser.Browser getBrowser()
public java.lang.String getHelpContextId()
public java.lang.String getHelpResource()
public java.lang.String getPartName()
public UrlObject getUrlObject()
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) throws org.eclipse.ui.PartInitException
This method also sets the URL by calling setUrlObject((UrlObject)input.getAdapter(UrlObject.class)).
public void setUrlObject(UrlObject url)
protected boolean useButtonBar()