Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2021-03-30 10:10:16 -0400
committerNiraj Modi2021-04-01 07:03:12 -0400
commit4456d634b5714824a54484eafe7ab20bf8acec28 (patch)
treefc27ee9a2fc9cfd9f3e3880ac18a476b10c2eebe /examples
parente7b400f527c00734fa0a732332ed16f1ac486bf2 (diff)
downloadeclipse.platform.swt-4456d634b5714824a54484eafe7ab20bf8acec28.tar.gz
eclipse.platform.swt-4456d634b5714824a54484eafe7ab20bf8acec28.tar.xz
eclipse.platform.swt-4456d634b5714824a54484eafe7ab20bf8acec28.zip
Bug 571571 part2 - [Win32] Migrate FileDialog to COM-based API
- Added check for "Hide extensions for known file types" registry entry to make filterNames work-around conditional - Tweaked Snippet72.java to cover this use-case Change-Id: Iaf5a318bc2b4e631e1eff0b50190395c02162deb Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java
index cb138b3103..fddab9bf9d 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2015 IBM Corporation and others.
+ * Copyright (c) 2000, 2021 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -35,8 +35,8 @@ public static void main (String [] args) {
String filterPath = "/";
String platform = SWT.getPlatform();
if (platform.equals("win32")) {
- filterNames = new String [] {"Image Files", "All Files (*.*)"};
- filterExtensions = new String [] {"*.gif;*.png;*.bmp;*.jpg;*.jpeg;*.tiff", "*.*"};
+ filterNames = new String [] {"All Files (*)"};
+ filterExtensions = new String [] {"*"};
filterPath = "c:\\";
}
dialog.setFilterNames (filterNames);

Back to the top