Skip to content

fix(gui): handle pasted file lists in file chooser#2876

Merged
skylot merged 1 commit into
skylot:masterfrom
mbv06:fix/file-chooser-paste
May 15, 2026
Merged

fix(gui): handle pasted file lists in file chooser#2876
skylot merged 1 commit into
skylot:masterfrom
mbv06:fix/file-chooser-paste

Conversation

@mbv06
Copy link
Copy Markdown
Contributor

@mbv06 mbv06 commented May 15, 2026

Description

This PR fixes pasting files/folders copied from the system file manager into the Jadx file chooser #2875

When copied files are available in the clipboard as javaFileListFlavor, jadx now pastes their absolute paths into the File name field, wrapping each path in quotes. Regular text paste behavior is left unchanged.

Fix

Add handling for clipboard lists of files/folders in the Swing file chooser, and paste copied files/folders as quoted absolute paths.

Testing

I manually tested copying one or more files/folders from the system file manager and pasting them into the jadx file opener on:

  • Windows 10, 11
  • macOS 15, 26
  • Ubuntu 24.04 LTS

In all cases, the copied paths are pasted into the file chooser, and jadx opens the selected files/folders as expected.

Copy link
Copy Markdown
Owner

@skylot skylot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you.

@skylot skylot merged commit e6b7db3 into skylot:master May 15, 2026
2 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.

2 participants