Skip to content

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