创建一个Eclipse插件,响应内部Web浏览器中的链接 [英] Create an Eclipse plugin that responds to links in the internal web browser
问题描述
否。 IWorkbenchBrowserSupport.createBrowser返回一个 IWebBrowser 。 IWebBrowser接口只定义了3种方法。
- close()
- getId()
- openURL(URL url)
我相信openURL用于导航到另一个网页URL地址文本框。
您可以编写自己的Web浏览器,允许您为浏览器事件创建侦听器。
Is there any way to hook into the eclipse web browser? I'm opening a link using IWorkbenchBrowserSupport.createBrowser, but after the page is launched I want to be able to take some action based on links clicked within the browser. Can you create a listener for browser events?
No. IWorkbenchBrowserSupport.createBrowser returns an IWebBrowser. The IWebBrowser interface only defines 3 methods.
- close()
- getId()
- openURL(URL url)
I believe that openURL is used to navigate to another web page using the URL address text box.
You could write your own web browser that would allow you to create listeners for browser events.
这篇关于创建一个Eclipse插件,响应内部Web浏览器中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!