Closed haesleinhuepf closed 5 years ago
@haesleinhuepf I very much appreciate you working on this! 🎉
However, I would appreciate if you would not self-merge things into imagej-legacy, unless you are interested in taking on the responsibility of the reviewer
and maintainer
roles for this component. Do you want that?
If not: I know it can be painful to wait for review from others, but core components, especially this one, can be very fiddly and it is important to have reviewer and maintainer eyes on every non-trivial PR.
For example, for this particular PR, I would advise not putting code in the service's initialize
method, because every bit of code inside such methods slows down the creation of every single SciJava Context
that includes that service. I make a concerted effort to use a lazy initialization pattern with services whenever possible, so that legwork to initialize things is only done on demand, rather than upfront.
Hey @ctrueden ,
thanks for your comment and sorry for violating a rule. It wasn't the first time I merged into master of imagej-legacy and I just wasn't aware of this being an issue. I thought my changes may not affect anybody and are 100%ly backwards compatible. Actually, I am happy to take over responsibilities like you suggest for imagej-legacy. Furthermore, I'm happy to check the initialize method as you mentioned. I'll file another PR asap.
Cheers, Robert
For the record: #210 is the follow-up PR.
Actually, I am happy to take over responsibilities like you suggest for imagej-legacy.
Cool, I appreciate that very much! I added you: 15e72b84a3761449adea26430731257165784a06
Dear all,
with this change, the auto-completion pulldown in IJ macro becomes extensible using SciJavas Plugin/Service mechanism. This is necessary in order to support auto-completions for Macro Extensions.
FYI: An example implementation of a compatible plugin can be found here: https://github.com/haesleinhuepf/clearclij/blob/add_auto_completion_for_ij_macro/src/main/java/net/haesleinhuepf/imagej/macro/CLIJMacroExtensionAutoCompletionPlugin.java
Let me know if anything speaks against merging this or if you see potential for improvement.
Merry Christmas!
Cheers, Robert