imagej / imagej/tutorials

DynamicCommand: combobox in the example never gets updated

Open
#69 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
200
Forks
117
PR merge metrics
No merged PRs in 30d

Description

I just pulled the latest changes of this repository and tried to get [DynamicCallbacks](https://github.com/imagej/tutorials/blob/master/maven-projects/dynamic-commands/src/main/java/DynamicCallbacks.java)
running. Now the `KindOfThing` does not seem to trigger the update of the `Thing`. I put a breakpoint [here](https://github.com/imagej/tutorials/blob/c78764438d774295d00fc8a4273e4c4f25c8ad46/maven-projects/dynamic-commands/src/main/java/DynamicCallbacks.java#L55) and indeed the callback gets triggered.

The question being; am I doing something wrong, or does the `MutableModuleItem` need a nudge to update the content of its components?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with maven-projects/dynamic-commands/src/main/java/DynamicCallbacks.java, especially the callback at line 55, and trace how the KindOfThing change reaches the MutableModuleItem and its combobox. Reproduce the example and confirm that changing KindOfThing updates Thing's available content without requiring manual interaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.