Skip to content
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

avoid opening data that was already opened in 3rd party opener #18

Closed

Conversation

xulman
Copy link

@xulman xulman commented Feb 6, 2022

When processing a drag&drop event, the processing may reach to the stage in which IOService is trying to resolve the incoming data/file.

As discussed in scijava-common's PR, sometimes user wants to open the incoming data in own way other than the default uiService.show().

This PR proposes to check the output of the used IOService opener for the new IOService.GOVERNING_APP_STARTED,
and if present, no reach out to uiService.show(data).

in other words, if loaded/returned data is IOService.GOVERNING_APP_STARTED
it is not shown via uiService.show(data)
@xulman
Copy link
Author

xulman commented Feb 6, 2022

scijava/scijava-common#430 -- the relevant scijava-common, IOService PR

@xulman
Copy link
Author

xulman commented Oct 18, 2023

this became deprecated with the SelfShowableContent -> scijava/scijava-common#473

@xulman xulman closed this Oct 18, 2023
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