Skip to content

Add Inputs class #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 16, 2020
Merged

Add Inputs class #387

merged 3 commits into from
Jul 16, 2020

Conversation

frauzufall
Copy link
Member

Hi @ctrueden,

during the Hackathon last December you made this branch after we talked with @tischi about having something like a generic dialog for asking the user to set input values.

I made the tests work, If you agree with the changes, I would squash the test commits.

Let me know if there is anything else I can do to get this merged.

ctrueden and others added 3 commits December 14, 2019 15:10
This enables some new use cases: e.g. it becomes possible to make a
DynamicCommand anonymous subclass as a local variable in a method,
for the purpose of using it once, without registering it in the context.
The idea is to build up the inputs with code dynamically in Java, run
the command (which does nothing when executed) to exploit the module
preprocessing chain, and then harvest the final input values.

In this way, the user can be prompted for inputs dynamically from Java
code, roughly similar to the ij.gui.GenericDialog class of ImageJ 1.x.
Co-authored-by: Deborah Schmidt <mail@frauzufall.de>
@ctrueden ctrueden merged commit 44eb258 into master Jul 16, 2020
@ctrueden ctrueden deleted the generic-dialog branch July 16, 2020 18:49
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