|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.kcl.cch.jb.pliny.imageRes.actions.BrowserButtonForSetup
an Action-like class to be displayed in the Pliny browser that, when clicked, harvests suitable images from the current HTML page and sets up Image Resource that point at them.
This is done by invoking methods in
ImageEditorResourceExtensionProcessor
Constructor Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BrowserButtonForSetup()
Method Detail |
public void setupToolItem(org.eclipse.swt.widgets.ToolItem item)
IBrowserToolbarContribution
setupToolItem
in interface IBrowserToolbarContribution
item
- ToolItem the browser will displaypublic void setTitle(String title)
IBrowserToolbarContribution
setTitle
in interface IBrowserToolbarContribution
title
- public void setUrl(URL url)
IBrowserToolbarContribution
setUrl
in interface IBrowserToolbarContribution
url
- URL the URL of the current displayed pagepublic void run(org.eclipse.ui.IWorkbenchPage page)
IBrowserToolbarContribution
run
in interface IBrowserToolbarContribution
page
- IWorkbenchPage the browser's page
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |