diff options
author | Grant Gayed <ggayed> | 2010-01-12 20:40:32 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2010-01-12 20:40:32 +0000 |
commit | 333b11a2b90eea9c6b6ee032f268edccdb25128d (patch) | |
tree | e68b446b79805e43c615bac21b9306bb7e9dcd73 | |
parent | 26ced1c8621f54efb927dff924b41de1e09708b7 (diff) | |
download | eclipse.platform.swt-333b11a2b90eea9c6b6ee032f268edccdb25128d.tar.gz eclipse.platform.swt-333b11a2b90eea9c6b6ee032f268edccdb25128d.tar.xz eclipse.platform.swt-333b11a2b90eea9c6b6ee032f268edccdb25128d.zip |
enable > 20 PDFs fix for Vista and Windows 7 as well
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java index fd3c147205..199d44dea3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java @@ -528,8 +528,7 @@ public void create(Composite parent, int style) { if (globalDispatch == 0) globalDispatch = dispatch.getAddress(); /* - * Bug in Acrobat Reader on Windows 2000 and XP (works on Vista and - * Windows 7). Opening > MAX_PDF PDF files causes Acrobat to not + * Bug in Acrobat Reader. Opening > MAX_PDF PDF files causes Acrobat to not * clean up its shells properly when the container Browser is disposed. * This results in Eclipse crashing at shutdown time because the leftover * shells have invalid references to unloaded Acrobat libraries. The @@ -537,15 +536,13 @@ public void create(Composite parent, int style) { * files have been opened. */ String url = event.arguments[1].getString(); - if (OS.WIN32_VERSION < OS.VERSION (6, 0)) { - int extensionIndex = url.lastIndexOf('.'); - if (extensionIndex != -1) { - String extension = url.substring(extensionIndex); - if (extension.equalsIgnoreCase(EXTENSION_PDF)) { - PDFCount++; - if (PDFCount > MAX_PDF) { - COM.FreeUnusedLibraries = false; - } + int extensionIndex = url.lastIndexOf('.'); + if (extensionIndex != -1) { + String extension = url.substring(extensionIndex); + if (extension.equalsIgnoreCase(EXTENSION_PDF)) { + PDFCount++; + if (PDFCount > MAX_PDF) { + COM.FreeUnusedLibraries = false; } } } @@ -919,24 +916,21 @@ public boolean isFocusControl () { public void refresh() { /* - * Bug in Acrobat Reader on Windows 2000 and XP (works on Vista and - * Windows 7). Opening > MAX_PDF PDF files causes Acrobat to not + * Bug in Acrobat Reader. Opening > MAX_PDF PDF files causes Acrobat to not * clean up its shells properly when the container Browser is disposed. * This results in Eclipse crashing at shutdown time because the leftover * shells have invalid references to unloaded Acrobat libraries. The * workaround is to not unload the Acrobat libraries if > MAX_PDF PDF * files have been opened. */ - if (OS.WIN32_VERSION < OS.VERSION (6, 0)) { - String url = getUrl(); - int extensionIndex = url.lastIndexOf('.'); - if (extensionIndex != -1) { - String extension = url.substring(extensionIndex); - if (extension.equalsIgnoreCase (EXTENSION_PDF)) { - PDFCount++; - if (PDFCount > MAX_PDF) { - COM.FreeUnusedLibraries = false; - } + String url = getUrl(); + int extensionIndex = url.lastIndexOf('.'); + if (extensionIndex != -1) { + String extension = url.substring(extensionIndex); + if (extension.equalsIgnoreCase (EXTENSION_PDF)) { + PDFCount++; + if (PDFCount > MAX_PDF) { + COM.FreeUnusedLibraries = false; } } } |