|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Plugins who wish to contribute an action button to the browser for Pliny must implement this interface. See the extension point defined by the Pliny plugin 'browserToolbarContribution'.
The browser displays a button for each object of this kind that
it finds (via its extension point), and will provide to the code
behind this interface the URL and title of the current webpage.
It is the job of the supplying plugin to process this through
(run()
) when the user
clicks on the button.
For the contract to work the browser requires the following:
setupToolItem
must provide an image
and tooltip text for the Toolitem the browser will create.
setTitle
and a URL (setUrl
) that will be used as parameters
for the method
There is an implementation in
BrowserButtonForSetup
Method Summary | |
void |
run(org.eclipse.ui.IWorkbenchPage page)
When the browser use clicks on the contributed button the browser will call this code, passing as a parameter its workbench Page. |
void |
setTitle(String title)
Each time the browser processes the web page and collects the page title it will call this method to provide the current web page's title to the implementor. |
void |
setupToolItem(org.eclipse.swt.widgets.ToolItem item)
The browser calls this to get a button to display. |
void |
setUrl(URL url)
Each time the browser user changes the current web page the browser will call this method to keep the implementing process informed about the current URL the user is seeing. |
Method Detail |
public void setupToolItem(org.eclipse.swt.widgets.ToolItem item)
item
- ToolItem the browser will displaypublic void setUrl(URL url)
url
- URL the URL of the current displayed pagepublic void setTitle(String title)
title
- public void run(org.eclipse.ui.IWorkbenchPage page)
page
- IWorkbenchPage the browser's page
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |