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

revisited the DefaultLegacyOpener, added support for SelfShowableContent #302

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

Conversation

xulman
Copy link

@xulman xulman commented Oct 18, 2023

This PR solves two things:

Based on @ctrueden 's commit, it reorganizes the order of actions in the main ImageJ1&2 opening routine such that the routine first makes sure it has a valid argument (which is a "path" to a resource, be it a file on a drive, or URL to somewhere) and only then it continues resolving how that argument path is going to be opened. The constraints considered during the opening were preserved, that said, it still honors wether newStyleIO is to be used first or not, falls back to IJ openers, etc.

The second change is that it detects when an opener returns SelfShowableContent as a result of opening the input path, and if so, it activates its show() method...

...which is a new kind of result of opening of inputs, often
used in conjuction with openers that do load-and-show on their own,
as opposite to load-only-and-have-Fiji-to-show pattern.
@xulman
Copy link
Author

xulman commented Oct 18, 2023

this PR works in conjuction with scijava/scijava-common#473

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