Closed acardona closed 1 year ago
I agree this would be nice. No time this year, though. Feel free to file a PR in the meantime.
Also, note that the relevant repository for the UI portion of this work would be https://github.com/imagej/imagej-ui-swing. Though I'd suggest implementing the filter itself as part of a core service in this component, to ease creation of other updater UIs in the future.
I think this was finally done thanks to @tferr in https://github.com/imagej/imagej-ui-swing/pull/91
Closing. Please re-open if I missed something.
It is kind of hard to discover which update sites provide which plugins or which java classes from a e.g. library. A search at the top of the table for Update Sites could filter the contents of the table to only those update sites with matching text, which ideally would be the name of the plugin or the name of a java class included in the update site jars.
Unzipping jar files in memory, or rather, listing their contents, to extract class names that contain an underscore, is doable. I'd extract all non-anonymous class file names anyway for filtering, so that libraries could be inspected in the same way. An iterative piece of code to do this is not hard (I've written one: 65 lines long in java [about 15 near the top are the relevant code], https://github.com/trakem2/TrakEM2/blob/master/TrakEM2_/src/main/java/ini/trakem2/Project.java#L129 ). Adapting mine or creating a new one would not be much work.