Skip to content

Enum parameters don't work in scripts #397

Closed
scijava/scijava-ui-swing
#51
@imagejan

Description

@imagejan

Consider the following Groovy script:

#@ org.scijava.ItemIO io

println io

(I also tested with other enum classes, e.g. net.imagej.ops.image.cooccurrenceMatrix.MatrixOrientation2D)

Running it results in an error message "A ItemIO is required but none exist."

Enum parameters should be rendered as dropdown choice widgets since aeccb57 (test added in 832c671), which seems to work in Java code, but not from scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions