diff options
author | Lakshmi Shanmugam | 2013-03-20 18:26:58 +0000 |
---|---|---|
committer | Lakshmi Shanmugam | 2013-03-20 18:26:58 +0000 |
commit | 1dad781cbb94d95be05e16068bf8370692f59146 (patch) | |
tree | 7ded0f8d589fd19ebc49c2e77d320b1b67b2e5e3 | |
parent | 0f03747d68de6662ba2bf9fd3af2d701bd2c1427 (diff) | |
download | eclipse.platform.swt-1dad781cbb94d95be05e16068bf8370692f59146.tar.gz eclipse.platform.swt-1dad781cbb94d95be05e16068bf8370692f59146.tar.xz eclipse.platform.swt-1dad781cbb94d95be05e16068bf8370692f59146.zip |
filepickerfactory
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePickerFactory.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePickerFactory.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePickerFactory.java index fcf4a18a2e..2ac1bfbcff 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePickerFactory.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/FilePickerFactory.java @@ -88,7 +88,11 @@ int Release () { /* nsIFactory */ int CreateInstance (long /*int*/ aOuter, long /*int*/ iid, long /*int*/ result) { - if (!Mozilla.IsPre_4) { + if (!Mozilla.IsPre_17) { + FilePicker_17 picker = new FilePicker_17 (); + picker.AddRef (); + XPCOM.memmove (result, new long /*int*/[] {picker.getAddress ()}, C.PTR_SIZEOF); + } else if (!Mozilla.IsPre_4) { FilePicker_10 picker = new FilePicker_10 (); picker.AddRef (); XPCOM.memmove (result, new long /*int*/[] {picker.getAddress ()}, C.PTR_SIZEOF); |