Skip to content

Conversation

@elsazac
Copy link
Member

@elsazac elsazac commented Oct 13, 2025

Refs: #2566

Fix file extension in macOS

Previously, the FileDialog would only append the selected file extension if there is no extension attached to the filename. However, if the filename already had an extension, it has to removed to accommodate the user input extension.
This PR updates the implementation to replace the existing extension with the user input file extension.

@elsazac elsazac changed the title Replace File Extension Based on Filter Selection Replace File Extension based on user selection Oct 13, 2025
@elsazac
Copy link
Member Author

elsazac commented Oct 13, 2025

@vogella Could you check this?

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2025

Test Results

  118 files  ±0    118 suites  ±0   13m 47s ⏱️ + 2m 23s
4 603 tests ±0  4 585 ✅ ±0  18 💤 ±0  0 ❌ ±0 
  330 runs  ±0    326 ✅ ±0   4 💤 ±0  0 ❌ ±0 

Results for commit d4c041e. ± Comparison against base commit 75f69db.

♻️ This comment has been updated with latest results.

@vogella
Copy link
Contributor

vogella commented Oct 13, 2025

LGTM from looking at the code

@vogella
Copy link
Contributor

vogella commented Oct 15, 2025

@orionll please confirm that this patch solves your problem

@orionll
Copy link

orionll commented Oct 16, 2025

@vogella, with this change the dialog returns a correct extension.

@vogella
Copy link
Contributor

vogella commented Oct 16, 2025

@elsazac thanks for the fix and thanks @orionll for testing.

Please merge

@MohananRahul
Copy link
Contributor

Build failing due to eclipse-tycho/tycho#5473

@laeubi
Copy link
Contributor

laeubi commented Oct 17, 2025

Build failing due to eclipse-tycho/tycho#5473

Nope... see comment. Either Infrastructure is unstable or some changes in PDE/ApiTools related in Platform... One might want to run a local maven build and attach a debugger to see what actually is missing here.

@elsazac elsazac force-pushed the fileExtension branch 3 times, most recently from 02bc0ad to af249f1 Compare October 24, 2025 06:08
@elsazac
Copy link
Member Author

elsazac commented Oct 24, 2025

Build looks good; Merging this now

Currently if there is no file extension for the file, then only the new
extension is getting appended; but there is no implementation if there
is an extension already present for the file and the user wants to
overwrite it;

The PR is raised to include that condition too.
@elsazac elsazac merged commit a0bac9e into eclipse-platform:master Oct 27, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants