Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » snippet of context menu in a Mozilla Browser not work with swt 4.2 and xulrunner 10
snippet of context menu in a Mozilla Browser not work with swt 4.2 and xulrunner 10 [message #1006130] Wed, 30 January 2013 06:41 Go to next message
LiLi Mising name is currently offline LiLi Mising nameFriend
Messages: 15
Registered: February 2010
Junior Member
hi, I am trying snippet of http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet306.java

which should create a context menu in embed mozilla browser.
I am using swt 4.2.1 in windows 7 and with xulrunner-10.0b5.en-US.win32(which is the latest version swt 4.2 support).
But I can't find lib/MozillaInterfaces.jar in sdk as http://www.eclipse.org/swt/faq.php#howusejavaxpcom
I tried to use xulrunner 3.6 and 1.9 but the api seems changed in swt 4.2

many lines can't be compiled
e.g.
nsIDOMWindow domWindow = webBrowser.GetContentDOMWindow();

[Updated on: Wed, 30 January 2013 06:42]

Report message to a moderator

Re: snippet of context menu in a Mozilla Browser not work with swt 4.2 and xulrunner 10 [message #1006287 is a reply to message #1006130] Wed, 30 January 2013 17:05 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
JavaXPCOM does not ship with XULRunner versions > 3.6.x, so this snippet
will never work with XULRunner 10. You should find the required jar(s)
if you use a XULRunner version like 3.6.x (they're included in the
XULRunner runtime, not in the SDK).

Grant


On 1/30/2013 1:41 AM, LiLi Mising name wrote:
> hi, I am trying snippet of
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet306.java
>
>
> which should create a context menu in embed mozilla browser.
> I am using swt 4.2.1 in windows 7 and with
> xulrunner-10.0b5.en-US.win32(which is the latest version swt 4.2 support).
> But I can find lib/MozillaInterfaces.jar in sdk as
> http://www.eclipse.org/swt/faq.php#howusejavaxpcom
> I tried to use xulrunner 3.6 and 1.9 but the api seems changed in swt 4.2
>
> many lines can't be compiled
> e.g.
> nsIDOMWindow domWindow = webBrowser.GetContentDOMWindow();
Previous Topic:IsSafeRunnable Error
Next Topic:SWT MS Word Save Button
Goto Forum:
  


Current Time: Fri Apr 19 09:08:38 GMT 2024

Powered by FUDForum. Page generated in 0.02440 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top