diff options
author | Lakshmi Shanmugam <lshanmug@in.ibm.com> | 2012-10-11 12:49:41 +0530 |
---|---|---|
committer | Lakshmi Shanmugam <lshanmug@in.ibm.com> | 2012-10-11 12:49:41 +0530 |
commit | d60ebbc0b5b9ce8a80e6d5bc426685845f8eea01 (patch) | |
tree | 15351e36e826a7d3c141ee3381bdd571757ea86c | |
parent | 254001e25f58faa55172860a194a95bd31b61565 (diff) | |
download | eclipse.platform.swt-d60ebbc0b5b9ce8a80e6d5bc426685845f8eea01.tar.gz eclipse.platform.swt-d60ebbc0b5b9ce8a80e6d5bc426685845f8eea01.tar.xz eclipse.platform.swt-d60ebbc0b5b9ce8a80e6d5bc426685845f8eea01.zip |
Bug 377019-Specific file name filter not working on Mac OS X
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java index 427034f135..cd495d7b79 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/FileDialog.java @@ -364,6 +364,7 @@ long /*int*/ panel_shouldShowFilename (long /*int*/ id, long /*int*/ sel, long / int index = extensions.indexOf (EXTENSION_SEPARATOR, start); if (index == -1) index = length; String filter = extensions.substring (start, index).trim (); + if (filter.equalsIgnoreCase (fileName)) return 1; if (filter.equals ("*") || filter.equals ("*.*")) return 1; if (filter.startsWith ("*.")) filter = filter.substring (2); if ((fileName.toLowerCase ()).endsWith("." + filter.toLowerCase ())) return 1; |