[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: monitoring "help browser"?
|
Hi Jinhui,
eclipse.platform was the right newsgroup for this question, maybe you should
post it there again.
My guess is that you can't get a handle to the browser used by Help,
especially if the user has "Use external browser" checked on the Help
preference page. If you do somehow get hold of it then Browser has method
#addLocationListener() which gives notification of url changes (like link
clicks) in its #changing method.
HTH,
Grant
"Jinhui" <zhuj@xxxxxxxxx> wrote in message
news:40b825a731180a6bc5c6105adef74c2f$1@xxxxxxxxxxxxxxxxxx
> Hi guys,
>
> I posted this question in eclipse.platform group, but got no answer. Maybe
> someone here can help me:
>
> * I want to monitor the usage of help browser, such as 1) what keywords
> the user has typed to search for 2) what help topic he just clicked.
>
> The problem is I can't find the corresponding listener.
>
> Nor do I understand the browser mechanism in Eclipse: on my windows
> machine, the help browser seems to based on IE (i.e. it wraps the IE
> browser), while on MAC the help contents are displayed in an external
> firefox browser.
>
> As far as I know, there're three places where the term "Browser" exist:
> 1) org.eclipse.swt.browser.Browser (sounds good due to the
> LocationListener)
> 2) org.eclipse.ui.browser.IWebBrowser (can find a listener for this?)
> 3) org.eclipse.help.browser.IBrowser (no listener for this?)
> But I didn't see any relationship between them.
>
> my question:
> 1) how can I get the default browser for "Help->Help Contents"?
> 2) is there a listener for observing it (e.g. search key words, clicked
> URLs, etc)?
>
>
> thanks very much in advance!
> Jinhui
>