[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: SWT Browser - context menu & search function

"Grant Gayed" <grant_gayed@xxxxxxxxxx> wrote:

Thank you too for this interresting message. BTW I have found
Browser.execute very useful.

Francis

>Hi Peter,
>
>> This method adds only the custom menu doesn't it? If I am wrong can you
>> give me a small example how to show "official right-click menu" of
>> Mozilla, IE etc?
>
>The "official" menu cannot be shown on linux because this is provided by the
>containing app (eg.- mozilla, firefox, random eclipse plug-in, etc.), not by
>the GRE that is embedded by the Browser.  So you can provide a custom
>context menu as previously mentioned, but need the ability to implement
>their functions.  Some you can do with current Browser api (including some
>less obvious ones that can be achieved with Browser.execute()), others you
>currently can't.  Eclipse 3.3 plan item
>https://bugs.eclipse.org/bugs/show_bug.cgi?id=154124 should make it possible
>to offer a menu that can invoke any browser functionality that is available
>to other embedding apps such as firefox.
>
>> >>3/ Is it possible to force the widget to use Firefox? At least on
>Windows
>> >>and Linux.
>
>The browser will always use IE on windows.  It can use firefox on linux if a
>dynamically-linked one is pointed at, see
>http://www.eclipse.org/swt/faq.php#browserlinux .  In reality it doesn't
>really matter if you're using mozilla, firefox or xulrunner for embedding on
>linux, because it's just the GRE that gets embedded anyways, which is shared
>amongst these three apps.
>
>Grant
>
Francis Leboutte 
www.algo.be