Skip to content

Enable dropping files onto labels containing ImageView in the workbench #3102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elsazac
Copy link
Member

@elsazac elsazac commented Jul 10, 2025

Dropping a file onto the top of an image wasn't possible on a label containing an imageView. The issue was previously fixed via eclipse-platform/eclipse.platform.swt#713. However, in the workbench image, dropping was yet to be configured.

The issue is now resolved by calling a DropTarget on the image label . It sets additional DropTarget on the tabFolder via composite label.

Fixes :eclipse-platform/eclipse.platform.swt#649

@elsazac elsazac force-pushed the workbenchImageFix branch from da2be69 to f3dd5c6 Compare July 10, 2025 13:12
@elsazac elsazac changed the title Enable dropping files onto images containing labels in the workbench Enable dropping files onto labels containing ImageView in the workbench Jul 10, 2025
Copy link
Contributor

github-actions bot commented Jul 10, 2025

Test Results

 2 778 files  ±0   2 778 suites  ±0   1h 40m 37s ⏱️ - 10m 22s
 7 932 tests ±0   7 704 ✅ ±0  228 💤 ±0  0 ❌ ±0 
23 351 runs  ±0  22 605 ✅ ±0  746 💤 ±0  0 ❌ ±0 

Results for commit f8a72cd. ± Comparison against base commit cb2fa1d.

♻️ This comment has been updated with latest results.

@elsazac elsazac force-pushed the workbenchImageFix branch 10 times, most recently from 7f03468 to 7cd49ec Compare July 18, 2025 07:38
@elsazac elsazac force-pushed the workbenchImageFix branch 13 times, most recently from db1d95f to 0a104a1 Compare July 24, 2025 06:32
File drop was not working on image labels in the workbench. This patch
sets additional DropTarget on the tabFolder via composite label.

Fixes :eclipse-platform/eclipse.platform.swt#649
@elsazac elsazac force-pushed the workbenchImageFix branch from 0a104a1 to f8a72cd Compare July 24, 2025 06:33
@elsazac
Copy link
Member Author

elsazac commented Jul 24, 2025

Behaviour without patch :

without_fix.mov

Behaviour with patch :

with_fix.mov

@elsazac
Copy link
Member Author

elsazac commented Jul 24, 2025

@BeckerWdf Could you test this patch?

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.

1 participant