Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2009-04-28 21:08:42 +0000
committerCarolyn MacLeod2009-04-28 21:08:42 +0000
commita3878daa0cb2464a2391686b785bb6a12d614854 (patch)
tree5237a1357fe751796891722ab0a29d434dfbb705 /examples/org.eclipse.swt.snippets/src
parent7974296f9aea31db373095fc2f37f1b304e84bce (diff)
downloadeclipse.platform.swt-a3878daa0cb2464a2391686b785bb6a12d614854.tar.gz
eclipse.platform.swt-a3878daa0cb2464a2391686b785bb6a12d614854.tar.xz
eclipse.platform.swt-a3878daa0cb2464a2391686b785bb6a12d614854.zip
look for image files instead of batch files (more common)
Diffstat (limited to 'examples/org.eclipse.swt.snippets/src')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java8
1 files changed, 4 insertions, 4 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 153d5e99fe..0ed0e5548b 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
@@ -26,13 +26,13 @@ public static void main (String [] args) {
Shell shell = new Shell (display);
shell.open ();
FileDialog dialog = new FileDialog (shell, SWT.SAVE);
- String [] filterNames = new String [] {"Executable Files", "All Files (*)"};
- String [] filterExtensions = new String [] {"*.sh;*.csh", "*"};
+ String [] filterNames = new String [] {"Image Files", "All Files (*)"};
+ String [] filterExtensions = new String [] {"*.gif;*.png;*.xpm;*.jpg;*.jpeg;*.tiff", "*"};
String filterPath = "/";
String platform = SWT.getPlatform();
if (platform.equals("win32") || platform.equals("wpf")) {
- filterNames = new String [] {"Batch Files", "All Files (*.*)"};
- filterExtensions = new String [] {"*.bat", "*.*"};
+ filterNames = new String [] {"Image Files", "All Files (*.*)"};
+ filterExtensions = new String [] {"*.gif;*.png;*.bmp;*.jpg;*.jpeg;*.tiff", "*.*"};
filterPath = "c:\\";
}
dialog.setFilterNames (filterNames);

Back to the top