Bug 443089: Save Dialog doesn't handle files with multipart extensions

Reverted code changes made for Bug 347430.
Don't use setAllowedFileType to set the filter extensions to the
NSSavePanel as it doesn't support multi-part extensions such as tar.gz.
Used delegate method panel:userEnteredFilename:confirmed: to handle the
overwrite case when name field has filename without extension.

Cocoa APIs in general don't support multi-part extensions. However, SWT
FileDialog needs to support them. Hence, add the required extensions
manually on save and selection change.

Change-Id: I221f75476f1c1d263f64da239845c325b436bfca
6 files changed
tree: 567279c14274a4ba43504558955388260498d334
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. CONTRIBUTING
  8. LICENSE
  9. NOTICE
  10. pom.xml
  11. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!