I’ve been writing scripts in python, but I often end up reading some of the java source code to figure out how use a particular thing. I’ve mostly just been referring to the source of ImageJ, because I’ve found the source for it. But it would be nice if I had the entire source code for the current version of Fiji I’m using. I know it’s possible to get the entire thing with maven. But I don’t know how to use maven and because I’m not even programming in java, it really isn’t worth it for me to learn right now.
So is there somewhere else or some other way to get the entire source code for a particular version of fiji?
If you want to learn about a particular command / plugin then one nice option is to use the search bar (bottom right of the fiji window - or Ctrl-L. If you type the name of the plugin / function you want a window will appear that has a Source button. That button takes you to the github page with the relevant source code.
(Sometimes that’s only a start and some digging is needed, but it’s saved me a bunch of time)
Or if you want deep clones of everything, the way I do it is using myrepos with the various organizations’ dotfiles repositories. See here for one way (not the only way) to do it:
It’s a bug! I launched Fiji in debug mode on my macOS system, and saw the following output when trying to open the source for the Analyze Particles command:
[DEBUG] Weird SCM tag 'HEAD'; using commit hash.
[DEBUG] java.io.IOException: Could not open https://github.com/imagej/ImageJA/blob/232620e0a3b0fd33bb22083aaadb2c26b1a31fc6/src/main/java/ij/plugin/filter/ParticleAnalyzer.java
I fixed it by running Help > Update… and installing the missing library jars/scijava-plugins-platforms-0.3.1.jar. You could double check whether this library is installed for you. I just downloaded a fresh Fiji and it is indeed there in the distribution. If you do have the library, you could launch Fiji in debug mode to get a better error message: